NewtonCollisionDestructor

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

NewtonCollisionDestructor

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

Usage

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)

Parameters

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

Remarks

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

See also

NewtonSetCollisionDestructor NewtonCollisionMakeUnique NewtonAddCollisionReference NewtonReleaseCollision