NewtonJointIsActive

From Newton Wiki
Jump to: navigation, search

NewtonJointIsActive

int NewtonJointIsActive (const NewtonJoint* const joint)

Usage

Identifies if a contact joint has actual physical contact.

Parameters

  • const NewtonJoint* const joint

Return

  • int 1 if contact joint is active, 0 if not.

Description

A contact joint is created whenever AABB's overlap, but is only active when the bodies have actual physical contact. Use this function, to see when there is actual physical contact between contact joints or just proximity.

See also