Skip to content

Get Sansar

Script API

CollisionData

Where: Client
More page actions

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

Class Namespace Sansar.Simulation Inherits Sansar.Script.EventData

Handler for rigid body events.

public class CollisionData : Sansar.Script.EventData

Members at a glance

KindMembers
PropertiesComponentId · EventType · HitComponentId · HitControlPoint · HitObject · Phase
MethodsToString

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

…and 2 more examples in the snapshot.

Generated from the Sansar 47.10.0 client ScriptApi snapshot.