Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

XRNode3D

Inherits: Node3D < Node < Object

Inherited By: XRAnchor3D, XRController3D

A spatial node that has its position automatically updated by the XRServer.

Description

This node can be bound to a specific pose of a XRPositionalTracker and will automatically have its Node3D.transform updated by the XRServer. Nodes of this type must be added as children of the XROrigin3D node.

Tutorials

Properties

StringName

pose

&"default"

StringName

tracker

&""

Methods

bool

get_has_tracking_data ( ) const

bool

get_is_active ( ) const

XRPose

get_pose ( )

void

trigger_haptic_pulse ( String action_name, float frequency, float amplitude, float duration_sec, float delay_sec )


Signals

tracking_changed ( bool tracking )

Emitted when the tracker starts or stops receiving updated tracking data for the pose being tracked. The tracking argument indicates whether the tracker is getting updated tracking data.


Property Descriptions

StringName pose = &"default"

The name of the pose we're bound to. Which poses a tracker supports is not known during design time.

Godot defines number of standard pose names such as aim and grip but other may be configured within a given XRInterface.


StringName tracker = &""

The name of the tracker we're bound to. Which trackers are available is not known during design time.

Godot defines a number of standard trackers su