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


typedef void (*NewtonCollisionDestructor) (const NewtonWorld* world, const NewtonCollision* collision);


This callback is set using NewtonSetCollisionDestructor and will notify you whenever a newton collision is destroyed (when the collision reference count reaches zero - see NewtonAddCollisionReference and NewtonReleaseCollision)


  • const NewtonWorld* world - the newton world that the newton collision was created in.
  • const NewtonCollision* collision - the newton collision which was freed.


  • This is not a library function, but a callback event.

See also

NewtonSetCollisionDestructor NewtonCollisionMakeUnique NewtonAddCollisionReference NewtonReleaseCollision