Documentation ¶
Overview ¶
Package XRBodyTracker provides methods for working with XRBodyTracker object instances.
Index ¶
- type Advanced
- type Any
- type BodyFlags
- type Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsXRBodyTracker() Instance
- func (self Instance) AsXRPositionalTracker() XRPositionalTracker.Instance
- func (self Instance) AsXRTracker() XRTracker.Instance
- func (self Instance) BodyFlags() gdclass.XRBodyTrackerBodyFlags
- func (self Instance) GetJointFlags(joint gdclass.XRBodyTrackerJoint) gdclass.XRBodyTrackerJointFlags
- func (self Instance) GetJointTransform(joint gdclass.XRBodyTrackerJoint) Transform3D.BasisOrigin
- func (self Instance) HasTrackingData() bool
- func (self Instance) SetBodyFlags(value gdclass.XRBodyTrackerBodyFlags)
- func (self Instance) SetHasTrackingData(value bool)
- func (self Instance) SetJointFlags(joint gdclass.XRBodyTrackerJoint, flags gdclass.XRBodyTrackerJointFlags)
- func (self Instance) SetJointTransform(joint gdclass.XRBodyTrackerJoint, transform Transform3D.BasisOrigin)
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
- type Joint
- type JointFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type BodyFlags ¶
type BodyFlags = gdclass.XRBodyTrackerBodyFlags //gd:XRBodyTracker.BodyFlags
type Instance ¶
type Instance [1]gdclass.XRBodyTracker
A body tracking system will create an instance of this object and add it to the [XRServer]. This tracking system will then obtain skeleton data, convert it to the Godot Humanoid skeleton and store this data on the [XRBodyTracker] object. Use [XRBodyModifier3D] to animate a body mesh using body tracking data.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsXRBodyTracker ¶
func (Instance) AsXRPositionalTracker ¶
func (self Instance) AsXRPositionalTracker() XRPositionalTracker.Instance
func (Instance) AsXRTracker ¶
func (Instance) BodyFlags ¶
func (self Instance) BodyFlags() gdclass.XRBodyTrackerBodyFlags
func (Instance) GetJointFlags ¶
func (self Instance) GetJointFlags(joint gdclass.XRBodyTrackerJoint) gdclass.XRBodyTrackerJointFlags
Returns flags about the validity of the tracking data for the given body joint (see [enum XRBodyTracker.JointFlags]).
func (Instance) GetJointTransform ¶
func (self Instance) GetJointTransform(joint gdclass.XRBodyTrackerJoint) Transform3D.BasisOrigin
Returns the transform for the given body joint.
func (Instance) HasTrackingData ¶
func (Instance) SetBodyFlags ¶
func (self Instance) SetBodyFlags(value gdclass.XRBodyTrackerBodyFlags)
func (Instance) SetHasTrackingData ¶
func (Instance) SetJointFlags ¶
func (self Instance) SetJointFlags(joint gdclass.XRBodyTrackerJoint, flags gdclass.XRBodyTrackerJointFlags)
Sets flags about the validity of the tracking data for the given body joint.
func (Instance) SetJointTransform ¶
func (self Instance) SetJointTransform(joint gdclass.XRBodyTrackerJoint, transform Transform3D.BasisOrigin)
Sets the transform for the given body joint.
func (*Instance) UnsafePointer ¶
type Joint ¶
type Joint = gdclass.XRBodyTrackerJoint //gd:XRBodyTracker.Joint
const ( /*Root joint.*/ JointRoot Joint = 0 /*Hips joint.*/ JointHips Joint = 1 /*Spine joint.*/ JointSpine Joint = 2 /*Chest joint.*/ JointChest Joint = 3 /*Upper chest joint.*/ JointUpperChest Joint = 4 /*Neck joint.*/ JointNeck Joint = 5 /*Head joint.*/ JointHead Joint = 6 /*Head tip joint.*/ JointHeadTip Joint = 7 /*Left shoulder joint.*/ JointLeftShoulder Joint = 8 /*Left upper arm joint.*/ JointLeftUpperArm Joint = 9 /*Left lower arm joint.*/ JointLeftLowerArm Joint = 10 /*Right shoulder joint.*/ JointRightShoulder Joint = 11 /*Right upper arm joint.*/ JointRightUpperArm Joint = 12 /*Right lower arm joint.*/ JointRightLowerArm Joint = 13 /*Left upper leg joint.*/ JointLeftUpperLeg Joint = 14 /*Left lower leg joint.*/ JointLeftLowerLeg Joint = 15 /*Left foot joint.*/ JointLeftFoot Joint = 16 /*Left toes joint.*/ JointLeftToes Joint = 17 /*Right upper leg joint.*/ JointRightUpperLeg Joint = 18 /*Right lower leg joint.*/ JointRightLowerLeg Joint = 19 /*Right foot joint.*/ JointRightFoot Joint = 20 /*Right toes joint.*/ JointRightToes Joint = 21 /*Left hand joint.*/ JointLeftHand Joint = 22 /*Left palm joint.*/ JointLeftPalm Joint = 23 /*Left wrist joint.*/ JointLeftWrist Joint = 24 /*Left thumb metacarpal joint.*/ JointLeftThumbMetacarpal Joint = 25 /*Left thumb phalanx proximal joint.*/ JointLeftThumbPhalanxProximal Joint = 26 /*Left thumb phalanx distal joint.*/ JointLeftThumbPhalanxDistal Joint = 27 /*Left thumb tip joint.*/ JointLeftThumbTip Joint = 28 /*Left index finger metacarpal joint.*/ JointLeftIndexFingerMetacarpal Joint = 29 /*Left index finger phalanx proximal joint.*/ JointLeftIndexFingerPhalanxProximal Joint = 30 /*Left index finger phalanx intermediate joint.*/ JointLeftIndexFingerPhalanxIntermediate Joint = 31 /*Left index finger phalanx distal joint.*/ JointLeftIndexFingerPhalanxDistal Joint = 32 /*Left index finger tip joint.*/ JointLeftIndexFingerTip Joint = 33 /*Left middle finger metacarpal joint.*/ JointLeftMiddleFingerMetacarpal Joint = 34 /*Left middle finger phalanx proximal joint.*/ JointLeftMiddleFingerPhalanxProximal Joint = 35 /*Left middle finger phalanx intermediate joint.*/ JointLeftMiddleFingerPhalanxIntermediate Joint = 36 /*Left middle finger phalanx distal joint.*/ JointLeftMiddleFingerPhalanxDistal Joint = 37 /*Left middle finger tip joint.*/ JointLeftMiddleFingerTip Joint = 38 /*Left ring finger metacarpal joint.*/ JointLeftRingFingerMetacarpal Joint = 39 /*Left ring finger phalanx proximal joint.*/ JointLeftRingFingerPhalanxProximal Joint = 40 /*Left ring finger phalanx intermediate joint.*/ JointLeftRingFingerPhalanxIntermediate Joint = 41 /*Left ring finger phalanx distal joint.*/ JointLeftRingFingerPhalanxDistal Joint = 42 /*Left ring finger tip joint.*/ JointLeftRingFingerTip Joint = 43 /*Left pinky finger metacarpal joint.*/ JointLeftPinkyFingerMetacarpal Joint = 44 /*Left pinky finger phalanx proximal joint.*/ JointLeftPinkyFingerPhalanxProximal Joint = 45 /*Left pinky finger phalanx intermediate joint.*/ JointLeftPinkyFingerPhalanxIntermediate Joint = 46 /*Left pinky finger phalanx distal joint.*/ JointLeftPinkyFingerPhalanxDistal Joint = 47 /*Left pinky finger tip joint.*/ JointLeftPinkyFingerTip Joint = 48 /*Right hand joint.*/ JointRightHand Joint = 49 /*Right palm joint.*/ JointRightPalm Joint = 50 /*Right wrist joint.*/ JointRightWrist Joint = 51 /*Right thumb metacarpal joint.*/ JointRightThumbMetacarpal Joint = 52 /*Right thumb phalanx proximal joint.*/ JointRightThumbPhalanxProximal Joint = 53 /*Right thumb phalanx distal joint.*/ JointRightThumbPhalanxDistal Joint = 54 /*Right thumb tip joint.*/ JointRightThumbTip Joint = 55 /*Right index finger metacarpal joint.*/ JointRightIndexFingerMetacarpal Joint = 56 /*Right index finger phalanx proximal joint.*/ JointRightIndexFingerPhalanxProximal Joint = 57 /*Right index finger phalanx intermediate joint.*/ JointRightIndexFingerPhalanxIntermediate Joint = 58 /*Right index finger phalanx distal joint.*/ JointRightIndexFingerPhalanxDistal Joint = 59 /*Right index finger tip joint.*/ JointRightIndexFingerTip Joint = 60 /*Right middle finger metacarpal joint.*/ JointRightMiddleFingerMetacarpal Joint = 61 /*Right middle finger phalanx proximal joint.*/ JointRightMiddleFingerPhalanxProximal Joint = 62 /*Right middle finger phalanx intermediate joint.*/ JointRightMiddleFingerPhalanxIntermediate Joint = 63 /*Right middle finger phalanx distal joint.*/ JointRightMiddleFingerPhalanxDistal Joint = 64 /*Right middle finger tip joint.*/ JointRightMiddleFingerTip Joint = 65 /*Right ring finger metacarpal joint.*/ JointRightRingFingerMetacarpal Joint = 66 /*Right ring finger phalanx proximal joint.*/ JointRightRingFingerPhalanxProximal Joint = 67 /*Right ring finger phalanx intermediate joint.*/ JointRightRingFingerPhalanxIntermediate Joint = 68 /*Right ring finger phalanx distal joint.*/ JointRightRingFingerPhalanxDistal Joint = 69 /*Right ring finger tip joint.*/ JointRightRingFingerTip Joint = 70 /*Right pinky finger metacarpal joint.*/ JointRightPinkyFingerMetacarpal Joint = 71 /*Right pinky finger phalanx proximal joint.*/ JointRightPinkyFingerPhalanxProximal Joint = 72 /*Right pinky finger phalanx intermediate joint.*/ JointRightPinkyFingerPhalanxIntermediate Joint = 73 /*Right pinky finger phalanx distal joint.*/ JointRightPinkyFingerPhalanxDistal Joint = 74 /*Right pinky finger tip joint.*/ JointRightPinkyFingerTip Joint = 75 /*Represents the size of the [enum Joint] enum.*/ JointMax Joint = 76 )
type JointFlags ¶
type JointFlags = gdclass.XRBodyTrackerJointFlags //gd:XRBodyTracker.JointFlags
const ( /*The joint's orientation data is valid.*/ JointFlagOrientationValid JointFlags = 1 /*The joint's orientation is actively tracked. May not be set if tracking has been temporarily lost.*/ JointFlagOrientationTracked JointFlags = 2 /*The joint's position data is valid.*/ JointFlagPositionValid JointFlags = 4 /*The joint's position is actively tracked. May not be set if tracking has been temporarily lost.*/ JointFlagPositionTracked JointFlags = 8 )