Handler for Interaction events.
public class InteractionData : Sansar.Script.EventDataMembers at a glance
| Kind | Members |
|---|---|
| Properties | AgentId · ControlPoint · HitNormal · HitPosition · Origin |
| Methods | ToString |
Properties
AgentId
public Sansar.Script.SessionId AgentId { get; }The SessionId of the agent who clicked the Interaction.
ControlPoint
Added in 33.2.0
public ControlPointType ControlPoint { get; }The ControlPoint that triggered the Interaction.
HitNormal
public Sansar.Vector HitNormal { get; }The normal direction at the position of the Interaction.
HitPosition
public Sansar.Vector HitPosition { get; }The position of the Interaction.
Origin
public Sansar.Vector Origin { get; }The position of the start of the ray that triggered the Interaction.
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
- MoverExample1.cs
- MoverExample3.cs
- InteractionExample.cs
- InteractionScreenshot.cs
- MyScripts/HelloWorld.cs
- ScriptLibrary/Quest/QuestCharacter.cs
- ScriptLibrary/Quest/QuestGiverInteraction.cs
- ScriptLibrary/Quest/QuestObjectInteraction.cs
- ScriptLibrary/Scene/Interaction.cs
Generated from the Sansar 47.10.0 client ScriptApi snapshot.