NewtonJointSetDestructor

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NewtonJointSetDestructor

void NewtonJointSetDestructor( const NewtonJoint* joint, NewtonConstraintDestructor destructor)

Usage

Register a destructor callback to be called when the joint is about to be destroyed.

Parameters

  • const NewtonJoint *joint - pointer to the joint.
  • NewtonJointCallBack destructor - pointer to the joint destructor callback.

Return

  • nothing.

Remarks

  • If application stores any resource with the joint, or the application wants to be notified when the joint is about to be destroyed. The application can register a destructor call back with the joint.

See also

NewtonJointSetUserData