NewtonWorldSetCollisionConstructorDestructorCallback

From Newton Wiki
Jump to: navigation, search

NewtonWorldSetCollisionConstructorDestructorCallback

void NewtonWorldSetCollisionConstructorDestructorCallback (const NewtonWorld* const newtonWorld, NewtonCollisionCopyConstructionCallback constructor, NewtonCollisionDestructorCallback destructor)

Usage

Assign an event function which will be called when a collision primitive of the given Newton world is created or destroyed.


Parameters

  • const NewtonWorld* const newtonWorld - pointer to the Newton world.
  • NewtonCollisionCopyConstructionCallback constructor - pointer to a callback function used to handle construction of a collision primitive.
  • NewtonCollisionDestructorCallback destructor - pointer to a callback function used to handle destruction of a collision primitive.

Return

  • (Procedure)

Description

Assign an event function which will be called when a collision primitive of the given Newton world is created or destroyed. The event handler callback function receives a pointer to the collision primitive as parameter.

See also