C4 Engine
C4 Engine API Documentation

class RigidBodyContact

Defined in:  C4Contacts.h
The RigidBodyContact class represents a contact between two rigid bodies.
Definition

class RigidBodyContact final : public CollisionContact

Member Functions
RigidBodyContact::GetWorldContactPosition Returns the world-space contact position and normal vector.
Description
The RigidBodyContact class represents a contact between single shapes belonging to two different rigid bodies. Instances of the RigidBodyContact class are only created internally by the Physics Manager.

When a rigid body makes a new contact with another rigid body, the RigidBodyController::HandleNewRigidBodyContact function is called for both rigid bodies.

Base Classes
CollisionContact Used internally by the Physics Manager.
See Also

GeometryContact

RigidBodyController::HandleNewRigidBodyContact