InteractionData Class
Handler for Interaction events.
Syntax
[Sansar.Script.Interface]
public class InteractionData : Sansar.Script.EventData
public class InteractionData : Sansar.Script.EventData
Remarks
Requirements
Namespace: Sansar.Simulation
Assembly: Sansar.Simulation (in Sansar.Simulation.dll)
Assembly Versions: 1.1.0.0
Assembly: Sansar.Simulation (in Sansar.Simulation.dll)
Assembly Versions: 1.1.0.0
Members
See Also: Inherited members from Sansar.Script.EventData.
Public Properties
[read-only] | AgentId | Sansar.Script.SessionId . The SessionId of the agent who clicked the Interaction. |
[read-only] | ControlPoint | ControlPointType . The ControlPoint that triggered the Interaction. |
[read-only] | HitNormal | Sansar.Vector . The normal direction at the position of the Interaction. |
[read-only] | HitPosition | Sansar.Vector . The position of the Interaction. |
[read-only] | Origin | Sansar.Vector . The position of the start of the ray that triggered the Interaction. |
Public Methods
override
|
ToString () : string
A string representation of this object. |
|
override
|
ToString () : string
Generates a string representation of the EventData. (Inherited from Sansar.Script.EventData.) |
Member Details
AgentId Property
The SessionId of the agent who clicked the Interaction.Syntax
[get: Sansar.Script.Interface]
public Sansar.Script.SessionId AgentId { get; }Value
Remarks
Requirements
Namespace: Sansar.Simulation
Assembly: Sansar.Simulation (in Sansar.Simulation.dll)
Assembly Versions: 1.1.0.0
ControlPoint Property
The ControlPoint that triggered the Interaction.Syntax
[get: Sansar.Script.Interface]
public ControlPointType ControlPoint { get; }Value
Remarks
Requirements
Namespace: Sansar.Simulation
Assembly: Sansar.Simulation (in Sansar.Simulation.dll)
Assembly Versions: 1.1.0.0
HitNormal Property
The normal direction at the position of the Interaction.Syntax
[get: Sansar.Script.Interface]
public Sansar.Vector HitNormal { get; }Value
Remarks
Requirements
Namespace: Sansar.Simulation
Assembly: Sansar.Simulation (in Sansar.Simulation.dll)
Assembly Versions: 1.1.0.0
HitPosition Property
The position of the Interaction.Syntax
[get: Sansar.Script.Interface]
public Sansar.Vector HitPosition { get; }Value
Remarks
Requirements
Namespace: Sansar.Simulation
Assembly: Sansar.Simulation (in Sansar.Simulation.dll)
Assembly Versions: 1.1.0.0
Origin Property
The position of the start of the ray that triggered the Interaction.Syntax
[get: Sansar.Script.Interface]
public Sansar.Vector Origin { 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
The format of this string may change between releases.Requirements
Namespace: Sansar.Simulation
Assembly: Sansar.Simulation (in Sansar.Simulation.dll)
Assembly Versions: 1.1.0.0
0 Comments