Handler for rigid body events.
public class CollisionData : Sansar.Script.EventDataMembers at a glance
| Kind | Members |
|---|---|
| Properties | ComponentId · EventType · HitComponentId · HitControlPoint · HitObject · Phase |
| Methods | ToString |
Properties
ComponentId
public Sansar.Script.ComponentId ComponentId { get; }The id of the rigid body component.
EventType
public CollisionEventType EventType { get; }The type of collision which occurred.
HitComponentId
public Sansar.Script.ComponentId HitComponentId { get; }The id of the rigid body component or character that was hit.
HitControlPoint
public ControlPointType HitControlPoint { get; }The specific control point hit, if any
HitObject
public ObjectPublic HitObject { get; }The ObjectPublic that was hit.
Phase
public CollisionEventPhase Phase { get; }used by trigger events to determine if trigger enter or exit occurred
Methods
ToString
public override string ToString()A string representation of this object.
Returns: string — A string representation of this object.
Remarks
The format of this string may change between releases.
Used in examples
- FollowThePath.cs
- RandomMovement.cs
- ReflectiveDetectorExample.cs
- AgentGravityExample.cs
- AgentScaleExample.cs
- EventExample.cs
- ObjectScriptExample.cs
- SceneObjectScriptExample.cs
- ScriptLibrary/Quest/QuestGiverTrigger.cs
- ScriptLibrary/Quest/QuestObjectInteraction.cs
- ScriptLibrary/Quest/QuestObjectTrigger.cs
- ScriptLibrary/Scene/Collisions.cs
…and 2 more examples in the snapshot.
Generated from the Sansar 47.10.0 client ScriptApi snapshot.