Difference between revisions of "NewtonUserBilateralCallBack"
m (1 revision imported) |
|
(No difference)
|
Latest revision as of 08:02, 10 June 2019
Prototype:
typedef void (_cdecl *NewtonUserBilateralCallBack) (const NewtonJoint* joint );
Usage:
This is called whenever custom joint is about to be updated. You can set all the joint's custom constraints in here.
Simple example:
// my callback unsigned MyCustomJointCallback( const NewtonJoint* joint ) { unsigned retCode = 0; // perform all custom joint actions here, see SDK samples return retCode; } . . . // creating custom joint NewtonJoint *nJoint; nJoint = NewtonConstraintCreateUserJoint( nWorld, maxDOF, MyCustomJointCallback, nBody0, nBody1 ); . . .
See also:
NewtonConstraintCreateUserJoint, NewtonUserJointAddLinearRow, NewtonUserJointAddAngularRow, NewtonUserJointAddGeneralRow