Sansar Docs
Ask or search…
K

Sit Object Data

SitObjectData Class

Handler for agent sit events.

Syntax

Member Details

ComponentId Property

Syntax

Value

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0

ObjectId Property

The ObjectId of the object the agent is sitting on

Syntax

Value

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0

SitObjectEvent Property

The type of sit event which occurred.

Syntax

[get: Sansar.Script.Interface] public SitEventType SitObjectEvent { get; }
Value

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0

SitObjectInfo Property

information about the object the agent is sitting on

Syntax

[get: Sansar.Script.Interface] public SitObjectInfo SitObjectInfo { get; }
Value

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0

ToString Method

A string representation of this object.

Syntax

[Sansar.Script.Interface] public override string ToString ()
Returns
A string representation of this object.

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0

SitObjectInfo Struct

Information about if an agent is sitting on this SitObjectInfo.

Syntax

[Sansar.Script.Interface] public struct SitObjectInfo

Member Details

ExitForward Field

The local space forward direction of the exit point from this sit point.

Syntax

[Sansar.Script.Interface] public Sansar.Vector ExitForward

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0

ExitPosition Field

The local space exit point where an agent will be when they stand up from this sit point.

Syntax

[Sansar.Script.Interface] public Sansar.Vector ExitPosition

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0

IsOccupied Field

Is an agent sitting on this object

Syntax

[Sansar.Script.Interface] public bool IsOccupied

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0

LocalForward Field

The local space forward direction for the object sit point.

Syntax

[Sansar.Script.Interface] public Sansar.Vector LocalForward

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0

LocalPosition Field

The local space point on the object where an agent would sit.

Syntax

[Sansar.Script.Interface] public Sansar.Vector LocalPosition

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0

SessionId Field

The SessionId of the agent that is sitting on the object.

Syntax

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0