Documentation
¶
Overview ¶
Package XRPose provides methods for working with XRPose object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AngularVelocity() Vector3.XYZ
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsXRPose() Instance
- func (self Instance) GetAdjustedTransform() Transform3D.BasisOrigin
- func (self Instance) HasTrackingData() bool
- func (self Instance) LinearVelocity() Vector3.XYZ
- func (self Instance) Name() string
- func (self Instance) SetAngularVelocity(value Vector3.XYZ)
- func (self Instance) SetHasTrackingData(value bool)
- func (self Instance) SetLinearVelocity(value Vector3.XYZ)
- func (self Instance) SetName(value string)
- func (self Instance) SetTrackingConfidence(value gdclass.XRPoseTrackingConfidence)
- func (self Instance) SetTransform(value Transform3D.BasisOrigin)
- func (self Instance) TrackingConfidence() gdclass.XRPoseTrackingConfidence
- func (self Instance) Transform() Transform3D.BasisOrigin
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
- type TrackingConfidence
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 Instance ¶
XR runtimes often identify multiple locations on devices such as controllers that are spatially tracked. Orientation, location, linear velocity and angular velocity are all provided for each pose by the XR runtime. This object contains this state of a pose.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AngularVelocity ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) GetAdjustedTransform ¶
func (self Instance) GetAdjustedTransform() Transform3D.BasisOrigin
Returns the [member transform] with world scale and our reference frame applied. This is the transform used to position [XRNode3D] objects.
func (Instance) HasTrackingData ¶
func (Instance) LinearVelocity ¶
func (Instance) SetAngularVelocity ¶
func (Instance) SetHasTrackingData ¶
func (Instance) SetLinearVelocity ¶
func (Instance) SetTrackingConfidence ¶
func (self Instance) SetTrackingConfidence(value gdclass.XRPoseTrackingConfidence)
func (Instance) SetTransform ¶
func (self Instance) SetTransform(value Transform3D.BasisOrigin)
func (Instance) TrackingConfidence ¶
func (self Instance) TrackingConfidence() gdclass.XRPoseTrackingConfidence
func (Instance) Transform ¶
func (self Instance) Transform() Transform3D.BasisOrigin
func (*Instance) UnsafePointer ¶
type TrackingConfidence ¶
type TrackingConfidence = gdclass.XRPoseTrackingConfidence //gd:XRPose.TrackingConfidence
const ( /*No tracking information is available for this pose.*/ XrTrackingConfidenceNone TrackingConfidence = 0 /*Tracking information may be inaccurate or estimated. For example, with inside out tracking this would indicate a controller may be (partially) obscured.*/ XrTrackingConfidenceLow TrackingConfidence = 1 /*Tracking information is considered accurate and up to date.*/ XrTrackingConfidenceHigh TrackingConfidence = 2 )