API

Interface ICharacterControllerCollisionEvent

Collision event data for the character controller

interface ICharacterControllerCollisionEvent {
    collider: PhysicsBody;
    colliderIndex: number;
    impulse: Vector3;
    impulsePosition: Vector3;
}
Index
collider: PhysicsBody

The collider physics body

colliderIndex: number

Index of the collider in instances

impulse: Vector3

Separation force applied to the collider

impulsePosition: Vector3

Position where the impulse is applied