Skip to content

Get Sansar

Script API

ControlPointType

Where: Client
More page actions

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

Enum Namespace Sansar.Simulation

Control points are a representation of some spatial inputs, primarily VR controllers.

public enum ControlPointType

Remarks

See:

AgentPrivate.GetControlPointPosition to get a control point’s position.

AgentPrivate.GetControlPointOrientation to get a control point’s orientation

AgentPrivate.GetControlPointEnabled to see if a control point is enabled.

Values

ValueDescription
CountCount of total possible control point types. Control points from 0 to (cCount - 1) are valid, however not all have meaningful data on the server for scripts.
DesktopGrabUsed when grabbing objects in desktop mode, follows the characters right hand
GazeTargetA VR head mounted display (HMD) control point, for the position and direction of the HMD.
InvalidAn invalid control point.
LeftToolLeft hand VR controller.
RightToolRight hand VR controller.

Used in examples

Generated from the Sansar 47.10.0 client ScriptApi snapshot.