NewtonCollisionSetUserID

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

NewtonCollisionSetUserID

Syntax:

void NewtonCollisionSetUserID (const NewtonCollision* convexCollision, unsigned id);

Usage

Stores a user defined value with a convex collision primitive.

Parameters

  • const NewtonCollision convexCollision - is the pointer to a convex collision primitive.
  • unsigned id - value to store with the collision primitive.

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 NewtonCollisionGetUserID NewtonCreateBox NewtonCreateSphere