Skip to content

Get Sansar

Script API

InteractionData

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 Interaction events.

public class InteractionData : Sansar.Script.EventData

Members at a glance

KindMembers
PropertiesAgentId · ControlPoint · HitNormal · HitPosition · Origin
MethodsToString

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

Generated from the Sansar 47.10.0 client ScriptApi snapshot.