NewtonCollisionGetUserID

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

NewtonCollisionGetUserID

Syntax:

unsigned NewtonCollisionGetUserID (const NewtonCollision* convexCollision);

Usage

Returns a user defined value asociated with a collision primitive.

Parameters

  • const NewtonCollision convexCollision - is the pointer to a convex collision primitive.

Return

  • user id

Description

The application can store an id with any collision primitive. This id can be used to identify what type of collision primitive generated a contact.

See also

NewtonMaterialGetBodyCollisionID NewtonCollisionSetUserID NewtonCreateBox NewtonCreateSphere