Skip to content
0.2.0-dev Download ZIP
45 lines ·2.5 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="XRBodyModifier3D" inherits="SkeletonModifier3D" api_type="core" experimental="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A node for driving body meshes from [XRBodyTracker] data.
5 </brief_description>
6 <description>
7 This node uses body tracking data from an [XRBodyTracker] to pose the skeleton of a body mesh.
8 Positioning of the body is performed by creating an [XRNode3D] ancestor of the body mesh driven by the same [XRBodyTracker].
9 The body tracking position-data is scaled by [member 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.
10 </description>
11 <tutorials>
12 <link title="XR documentation index">$DOCS_URL/tutorials/xr/index.html</link>
13 </tutorials>
14 <members>
15 <member name="body_tracker" type="StringName" setter="set_body_tracker" getter="get_body_tracker" default="&amp;&quot;/user/body_tracker&quot;">
16 The name of the [XRBodyTracker] registered with [XRServer] to obtain the body tracking data from.
17 </member>
18 <member name="body_update" type="int" setter="set_body_update" getter="get_body_update" enum="XRBodyModifier3D.BodyUpdate" is_bitfield="true" default="7">
19 Specifies the body parts to update.
20 </member>
21 <member name="bone_update" type="int" setter="set_bone_update" getter="get_bone_update" enum="XRBodyModifier3D.BoneUpdate" default="0">
22 Specifies the type of updates to perform on the bones.
23 </member>
24 </members>
25 <constants>
26 <constant name="BODY_UPDATE_UPPER_BODY" value="1" enum="BodyUpdate" is_bitfield="true">
27 The skeleton's upper body joints are updated.
28 </constant>
29 <constant name="BODY_UPDATE_LOWER_BODY" value="2" enum="BodyUpdate" is_bitfield="true">
30 The skeleton's lower body joints are updated.
31 </constant>
32 <constant name="BODY_UPDATE_HANDS" value="4" enum="BodyUpdate" is_bitfield="true">
33 The skeleton's hand joints are updated.
34 </constant>
35 <constant name="BONE_UPDATE_FULL" value="0" enum="BoneUpdate">
36 The skeleton's bones are fully updated (both position and rotation) to match the tracked bones.
37 </constant>
38 <constant name="BONE_UPDATE_ROTATION_ONLY" value="1" enum="BoneUpdate">
39 The skeleton's bones are only rotated to align with the tracked bones, preserving bone length.
40 </constant>
41 <constant name="BONE_UPDATE_MAX" value="2" enum="BoneUpdate">
42 Represents the size of the [enum BoneUpdate] enum.
43 </constant>
44 </constants>
45</class>