Meta_PointerController

A PointerController casts a ray to collide with scene and gui objects. It is used to provide lasers on tracked controllers.

Public Types


enum Hand

Values for Idx_Hand.

Left

Symbols - C: "LeftHand", Lua: __PointerController_LeftHand

Right

Symbols - C: "RightHand", Lua: __PointerController_RightHand


enum IDX
Idx_Enabled
Idx_Transform

bool - Enabled state of the controller and its raycast

Idx_Camera

mat4w - Local transform (origin) of the pointer

Idx_ButtonSource

link - Optionally specify a Meta_Camera which should be the only one that can see the pointer

Idx_TouchSource

link - a Meta_TrackerInput providing tracker buttons. Button 0 acts as a "trigger" to click on whatever the pointer is pointing at

Idx_ShowCursor

link - a Meta_TrackerInput providing a touch pad tracker source

Idx_ShowLaser

bool - Whether to show a cursor at the end of the laser

Idx_LaserSelectEnabled

bool - Whether to show the red laser

Idx_Length

bool - Whether the laser can select the 3D scene

Idx_VisibleToAll

world_float - The length of the ray, or zero if it should extend to the far clip plane

Idx_VisibleToSelf

bool - Whether the laser is visible to all users in a collaboration

Idx_DoubleClickDistanceTolerance

bool - Whether the laser is visible to the local user (you)

Idx_DoubleClickAngleTolerance

float - The distance the laser is allowed to move between clicks before they count as separate clicks

Idx_Hand

float - The distance the laser is allowed to rotate between clicks before they count as separate clicks

No Results.

Getting StartedArchitectureBest PracticesHow ToAdvanced TopicsChangelogvrtree_cppCoreForeign Function InterfaceMetanodesMigrationsObserversPropertiesTreeUtilitiesAPI DefinitionsVR ExchangePluginsLua API