Control points are a representation of some spatial inputs, primarily VR controllers.
public enum ControlPointTypeRemarks
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
| Value | Description |
|---|---|
Count | Count 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. |
DesktopGrab | Used when grabbing objects in desktop mode, follows the characters right hand |
GazeTarget | A VR head mounted display (HMD) control point, for the position and direction of the HMD. |
Invalid | An invalid control point. |
LeftTool | Left hand VR controller. |
RightTool | Right hand VR controller. |
Used in examples
- BanHammerExample.cs
- CastRayExample.cs
- PewPewExample.cs
- ScriptLibrary/Scene/Collisions.cs
- ScriptLibrary/Scene/GrabRelease.cs
- ScriptLibrary/Scene/HintText.cs
- ScriptLibrary/Scene/Selector.cs
- ScriptLibrary/Scene/Targeting.cs
Generated from the Sansar 47.10.0 client ScriptApi snapshot.