Click or drag to resize

WebXRInterfaceGetController Method

Gets an ARVRPositionalTracker for the given controller_id.

In the context of WebXR, a "controller" can be an advanced VR controller like the Oculus Touch or Index controllers, or even a tap on the screen, a spoken voice command or a button press on the device itself. When a non-traditional controller is used, interpret the position and orientation of the ARVRPositionalTracker as a ray pointing at the object the user wishes to interact with.

Use this method to get information about the controller that triggered one of these signals:

- selectstart

- select

- selectend

- squeezestart

- squeeze

- squeezestart

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public ARVRPositionalTracker GetController(
	int controllerId
)

Parameters

controllerId
Type: SystemInt32

[Missing <param name="controllerId"/> documentation for "M:Godot.WebXRInterface.GetController(System.Int32)"]

Return Value

Type: ARVRPositionalTracker

[Missing <returns> documentation for "M:Godot.WebXRInterface.GetController(System.Int32)"]

See Also