Some strange code in the SDK

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Some strange code in the SDK

Postby armokal » Fri Nov 05, 2010 10:56 pm

In the SDK, there are a few places with code like this

//File = LegacyJoints.cpp
joint = NewtonConstraintCreateUniversal (nWorld, &pivot.m_x, &pin0.m_x, &pin1.m_x, beat, bar);
NewtonCorkscrewSetUserCallback (joint, UniversalUpdateEvent);

why is NewtonCorkscrewSetUserCallback used instead of NewtonUniversalSetUserCallback.
armokal
 
Posts: 22
Joined: Fri Oct 27, 2006 10:03 pm
Location: Canada

Re: Some strange code in the SDK

Postby Julio Jerez » Fri Nov 05, 2010 11:30 pm

Legacy joint were a main feature iof 1.53
you should work with the custom joints in 2.0
Julio Jerez
Moderator
Moderator
 
Posts: 12452
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 92 guests

cron