Interface PhysicsTriggerBodyInfo
interface PhysicsTriggerBodyInfo {
bodyA: PhysicsBody | null;
bodyAIndex: number;
bodyB: PhysicsBody | null;
bodyBIndex: number;
type: "ENTERED" | "EXITED";
}
bodyA: PhysicsBody | null;
bodyAIndex: number;
bodyB: PhysicsBody | null;
bodyBIndex: number;
type: "ENTERED" | "EXITED";
}
Hierarchy (View Summary)
- PhysicsTriggerInfo
- PhysicsTriggerBodyInfo
Properties
body A
First body reported by Havok, or null if it is no longer tracked.
body A Index
bodyAIndex: number
Thin-instance index of bodyA, or -1 when the body is no longer tracked.
body B
Second body reported by Havok, or null if it is no longer tracked.
body B Index
bodyBIndex: number
Thin-instance index of bodyB, or -1 when the body is no longer tracked.
type
type: "ENTERED" | "EXITED"
ENTERED when a body enters the trigger volume, EXITED when it leaves.
Trigger event including the two participating bodies.