Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

XRCamera3D

Inherits: Camera3D < Node3D < Node < Object

A camera node which automatically positions itself based on XR tracking data.

Description

A camera node which automatically positions itself based on XR tracking data.

Note: Due to the nature of headsets, camera positioning needs to update every frame even when your game is paused. Node.process_mode must be set to Node.PROCESS_MODE_ALWAYS.

Tutorials

Properties

PhysicsInterpolationMode

physics_interpolation_mode

2 (overrides Node)

ProcessMode

process_mode

3 (overrides Node)

StringName

tracker

&"head"


Property Descriptions

StringName tracker = &"head" 🔗

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

The default tracker refers to the HMD position of the main player. Consult the documentation of the XRInterface for any additional trackers. There may be additional tracked headsets for multiplayer systems or a tracker may be available for a physical camera in a mixed reality scenario.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.