NewtonWorldSetCollisionConstructorDestructorCallback

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

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