NewtonJointGetCollisionState

From Newton Wiki
Jump to: navigation, search

NewtonJointGetCollisionState

int NewtonJointGetCollisionState(const NewtonJoint* joint)

Usage

Get the collision state of the two bodies linked by the joint.

Parameters

  • const NewtonJoint *joint - pointer to the joint.

Return

  • the collision state.

Remarks

  • usually when two bodies are linked by a joint, the application wants collision between this two bodies to be disabled. This is the default behavior of joints when they are created, however when this behavior is not desired the application can change it by setting collision on. If the application decides to enable collision between jointed bodies, the application should make sure the collision geometry do not collide in the work space of the joint.

See also

NewtonJointSetCollisionState