- Home
- Script API
- Sansar.Simulation
- Delegates
- RigidBodyComponent.SubscriptionHandler
Script API
RigidBodyComponent.SubscriptionHandler
Handler for rigid body events.
[System.Obsolete("Use subscription callbacks of type Action<Sansar.Simulation.CollisionData>", false)]public delegate void RigidBodyComponent.SubscriptionHandler( CollisionEventType EventType, Sansar.Script.ComponentId ComponentId, Sansar.Script.ComponentId HitComponentId, ObjectPublic HitObject, CollisionEventPhase Phase, ControlPointType HitControlPoint)| Parameter | Type | Description |
|---|---|---|
EventType | CollisionEventType | The type of collision which occurred. |
ComponentId | Sansar.Script.ComponentId | The id of the rigid body component. |
HitComponentId | Sansar.Script.ComponentId | The id of the rigid body component or character that was hit. |
HitObject | ObjectPublic | The ObjectPublic that was hit. |
Phase | CollisionEventPhase | used by trigger events to determine if trigger enter or exit occurred |
HitControlPoint | ControlPointType | The specific control point hit, if any |
Generated from the Sansar 47.10.0 client ScriptApi snapshot.