Skip to content

Get Sansar

Script API

RigidBodyComponent.SubscriptionHandler

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delegate Namespace Sansar.Simulation

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
)
ParameterTypeDescription
EventTypeCollisionEventTypeThe type of collision which occurred.
ComponentIdSansar.Script.ComponentIdThe id of the rigid body component.
HitComponentIdSansar.Script.ComponentIdThe id of the rigid body component or character that was hit.
HitObjectObjectPublicThe ObjectPublic that was hit.
PhaseCollisionEventPhaseused by trigger events to determine if trigger enter or exit occurred
HitControlPointControlPointTypeThe specific control point hit, if any

Generated from the Sansar 47.10.0 client ScriptApi snapshot.