class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedXRTracker XRPositionalTracker
A tracked object.

An instance of this object represents a device that is tracked, such as a controller or anchor point. HMDs aren't represented here as they are handled internally.

As controllers are turned on and the XRInterface detects them, instances of this object are automatically added to this list of active tracking objects accessible through the XRServer.

The XRNode3D and XRAnchor3D both consume objects of this type and should be used in your project. The positional trackers are just under-the-hood objects that make this all work. These are mostly exposed so that GDExtension-based interfaces can interact with them.

Signal button_pressed<>( String name=, name:String=, ):Signal

Emitted when a button on this tracker is pressed. Note that many XR runtimes allow other inputs to be mapped to buttons.

Signal button_released<>( String name=, name:String=, ):Signal

Emitted when a button on this tracker is released.

Signal input_float_changed<>( String name=, name:String=, float value=, value:float=, ):Signal

Emitted when a trigger or similar input on this tracker changes value.

Signal input_vector2_changed<>( String name=, name:String=, Vector2 vector=, vector:Vector2=, ):Signal

Emitted when a thumbstick or thumbpad on this tracker moves.

Signal pose_changed<>( XRPose pose=, pose:XRPose=, ):Signal

Emitted when the state of a pose tracked by this tracker changes.

Signal pose_lost_tracking<>( XRPose pose=, pose:XRPose=, ):Signal

Emitted when a pose tracked by this tracker stops getting updated tracking data.

Signal profile_changed<>( String role=, role:String=, ):Signal

Emitted when the profile of our tracker changes.

Enum TrackerHand<>():Enum

TRACKER_HAND_UNKNOWN = 0

The hand this tracker is held in is unknown or not applicable.


TRACKER_HAND_LEFT = 1

This tracker is the left hand controller.


TRACKER_HAND_RIGHT = 2

This tracker is the right hand controller.


TRACKER_HAND_MAX = 3

Represents the size of the TrackerHand enum.

TrackerHand hand<>():TrackerHand

Defines which hand this tracker relates to.

String profile<>():String

The profile associated with this tracker, interface dependent but will indicate the type of controller being tracked.

Variant get_input<>( StringName name=, name:StringName=, ):Variant

Deprecated: Use through XRControllerTracker.

Returns an input for this tracker. It can return a boolean, float or Vector2 value depending on whether the input is a button, trigger or thumbstick/thumbpad.

XRPose get_pose<>( StringName name=, name:StringName=, ):XRPose

Returns the current XRPose state object for the bound name pose.

bool has_pose<>( StringName name=, name:StringName=, ):bool

Returns true if the tracker is available and is currently tracking the bound name pose.

void invalidate_pose<>( StringName name=, name:StringName=, ):void

Marks this pose as invalid, we don't clear the last reported state but it allows users to decide if trackers need to be hidden if we lose tracking or just remain at their last known position.

void set_input<>( StringName name=, name:StringName=, Variant value=, value:Variant=, ):void

Deprecated: Use through XRControllerTracker.

Changes the value for the given input. This method is called by a XRInterface implementation and should not be used directly.

void set_pose<>( StringName name=, name:StringName=, Transform3D transform=, transform:Transform3D=, Vector3 linear_velocity=, linear_velocity:Vector3=, Vector3 angular_velocity=, angular_velocity:Vector3=, TrackingConfidence tracking_confidence=, tracking_confidence:TrackingConfidence=, ):void

Sets the transform, linear velocity, angular velocity and tracking confidence for the given pose. This method is called by a XRInterface implementation and should not be used directly.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...