Skip to content

XRCamera3D

Inherits: Camera3D < Entity3D < Entity < Object

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

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. Entity.run_mode must be set to Entity.RUN_MODE_ALWAYS.

Type Name Default
Entity.PhysicsInterpolationMode physics_interpolation_mode 2 (overrides Entity)
Entity.RunMode run_mode 3 (overrides Entity)
StringName tracker &"head"

tracker

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.