NewtonAddCollisionReference
This function is deprecated in newton 3 |
Contents
NewtonAddCollisionReference
int NewtonAddCollisionReference (const NewtonCollision* collision);
Usage
Adds a reference to this collision object.
Parameters
- const NewtonCollision *collisionPtr - pointer to the collision object.
Return
- The number of references to the collision.
Description
Adds a reference to this collision object.
Remarks
- Added in 2.0
- Collision objects are reference counted objects. The application should call NewtonReleaseCollision in order to release references to the object. Neglecting to release references to collision primitives is a common cause of memory leaks.