Inheritance #
- AudioServer
- CameraServer
- ClassDB
- DisplayServer
- EditorFileSystemDirectory
- EditorInterface
- EditorPaths
- EditorSelection
- EditorUndoRedoManager
- EditorVCSInterface
- Engine
- EngineDebugger
- FramebufferCacheRD
- GDExtensionManager
- Geometry2D
- Geometry3D
- IP
- Input
- InputMap
- JNISingleton
- JSONRPC
- JavaClassWrapper
- JavaScriptBridge
- MainLoop (1)
- Marshalls
- MovieWriter
- NativeMenu
- NavigationMeshGenerator
- NavigationServer2D
- NavigationServer3D
- Node (21)
- OS
- OpenXRExtensionWrapperExtension
- OpenXRInteractionProfileMetadata
- Performance
- PhysicsDirectBodyState2D (1)
- PhysicsDirectBodyState3D (1)
- PhysicsDirectSpaceState2D (1)
- PhysicsDirectSpaceState3D (1)
- PhysicsServer2D (1)
- PhysicsServer2DManager
- PhysicsServer3D (1)
- PhysicsServer3DManager
- PhysicsServer3DRendering
ServerHandler
- ProjectSettings
- RefCounted (121)
- RenderData (2)
- RenderSceneData (2)
- RenderingDevice
- RenderingServer
- ResourceLoader
- ResourceSaver
- ResourceUID
- ScriptLanguage (1)
- ShaderIncludeDB
- TextServerManager
- ThemeDB
- TileData
- Time
- TranslationServer
- TreeItem
- UndoRedo
- UniformSetCacheRD
- WorkerThreadPool
- XRServer
- XRVRS
- AnimationMixer (2)
- AudioStreamPlayer
- CanvasItem (2)
- CanvasLayer (1)
- EditorFileSystem
- EditorPlugin (1)
- EditorResourcePreview
- HTTPRequest
- InstancePlaceholder
- MissingNode
- MultiplayerSpawner
- MultiplayerSynchronizer
- NavigationAgent2D
- NavigationAgent3D
- Node3D (31)
- ResourcePreloader
- ShaderGlobalsOverride
- StatusIndicator
- Timer
- Viewport (2)
- WorldEnvironment
- AudioListener3D
- AudioStreamPlayer3D
- BoneAttachment3D
- Camera3D (1)
- CollisionObject3D (2)
- CollisionPolygon3D
- CollisionShape3D
- GridMap
- ImporterMeshInstance3D
- Joint3D (5)
- LightmapProbe
- Marker3D
- NavigationLink3D
- NavigationObstacle3D
- NavigationRegion3D
- OpenXRCompositionLayer (3)
- OpenXRHand
- Path3D
- PathFollow3D
- RayCast3D
- RemoteTransform3D
- ShapeCast3D
- Skeleton3D
- SkeletonModifier3D (7)
- SpringArm3D
- SpringBoneCollision3D (3)
- VehicleWheel3D
- VisualInstance3D (13)
- XRFaceModifier3D
- XRNode3D (2)
- XROrigin3D
- LookAtModifier3D
- PhysicalBoneSimulator3D
- RetargetModifier3D
- SkeletonIK3D
- SpringBoneSimulator3D
- XRBodyModifier3D
- XRHandModifier3D
Table of contents
-
var body_tracker: StringName = &"/user/body_tracker" -
var body_update: int = 7 -
var bone_update = BONE_UPDATE_FULL -
const BODY_UPDATE_UPPER_BODY = 1 enum BodyUpdateBitfield -
const BODY_UPDATE_LOWER_BODY = 2 enum BodyUpdateBitfield -
const BODY_UPDATE_HANDS = 4 enum BodyUpdateBitfield -
const BONE_UPDATE_FULL = 0 enum BoneUpdate -
const BONE_UPDATE_ROTATION_ONLY = 1 enum BoneUpdate -
const BONE_UPDATE_MAX = 2 enum BoneUpdate -
enum BodyUpdate -
enum BoneUpdate
XRBodyModifier3D #
is_instantiable, Node3D, Node, core, not_builtin_classes
A node for driving body meshes from XRBodyTracker data.
This node uses body tracking data from an XRBodyTracker to pose the skeleton of a body mesh.
Positioning of the body is performed by creating an XRNode3D ancestor of the body mesh driven by the same XRBodyTracker.
The body tracking position-data is scaled by Skeleton3D.motion_scale when applied to the skeleton, which can be used to adjust the tracked body to match the scale of the body model.
Members #
var body_tracker: StringName = &"/user/body_tracker"#
The name of the XRBodyTracker registered with XRServer to obtain the body tracking data from.
var body_update: int = 7#
Specifies the body parts to update.
var bone_update = BONE_UPDATE_FULL#
Specifies the type of updates to perform on the bones.
Methods #
Annotations #
Constants #
const BODY_UPDATE_UPPER_BODY = 1 enum BodyUpdateBitfield#
The skeleton's upper body joints are updated.
const BODY_UPDATE_LOWER_BODY = 2 enum BodyUpdateBitfield#
The skeleton's lower body joints are updated.
const BODY_UPDATE_HANDS = 4 enum BodyUpdateBitfield#
The skeleton's hand joints are updated.
const BONE_UPDATE_FULL = 0 enum BoneUpdate#
The skeleton's bones are fully updated (both position and rotation) to match the tracked bones.
const BONE_UPDATE_ROTATION_ONLY = 1 enum BoneUpdate#
The skeleton's bones are only rotated to align with the tracked bones, preserving bone length.
const BONE_UPDATE_MAX = 2 enum BoneUpdate#
Represents the size of the BoneUpdate enum.
Constructors #
Enums #
BodyUpdate#
enum BodyUpdate {
BODY_UPDATE_UPPER_BODY = 1,
BODY_UPDATE_LOWER_BODY = 2,
BODY_UPDATE_HANDS = 4,
}BoneUpdate#
enum BoneUpdate {
BONE_UPDATE_FULL = 0,
BONE_UPDATE_ROTATION_ONLY = 1,
BONE_UPDATE_MAX = 2,
}