struct CollisionData
Defined in:
The C4Node.h
CollisionData
structure contains extended information about a collision.
Definition
struct CollisionData : CollisionPoint
Data Members
Geometry *geometry; |
The geometry node with which the collision occurred. This is valid when the World::DetectCollision function returns true or the World::QueryCollision function returns kCollisionStateGeometry .
|
RigidBodyController *rigidBody; |
The rigid body with which the collision occurred. This is valid only if the World::QueryCollision function was called and it returned kCollisionStateRigidBody .
|
uint32 triangleIndex; |
The index of the mesh triangle where the collision occurred. This is valid when the World::DetectCollision function returns true or the World::QueryCollision function returns kCollisionStateGeometry .
|
const Shape *shape; |
The shape with which the collision occurred. This is valid only if the World::QueryCollision function was called and it returned kCollisionStateRigidBody .
|
int32 detailLevel; |
The geometric detail level to which the triangleIndex field pertains. This field is valid only when the triangleIndex field is valid.
|
Description
The CollisionData
structure is used to return information about a collision when using the World::DetectCollision
and World::QueryCollision
functions.
Base Classes
CollisionPoint |
The CollisionData structure extends the CollisionPoint structure.
|
See Also