class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCounted XRPose
This object contains all data related to a pose on a tracked object.

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.

Enum TrackingConfidence<>():Enum

XR_TRACKING_CONFIDENCE_NONE = 0

No tracking information is available for this pose.


XR_TRACKING_CONFIDENCE_LOW = 1

Tracking information may be inaccurate or estimated. For example, with inside out tracking this would indicate a controller may be (partially) obscured.


XR_TRACKING_CONFIDENCE_HIGH = 2

Tracking information is deemed accurate and up to date.

Vector3 angular_velocity<>():Vector3

The angular velocity for this pose.

bool has_tracking_data<>():bool

If true our tracking data is up to date. If false we're no longer receiving new tracking data and our state is whatever that last valid state was.

Vector3 linear_velocity<>():Vector3

The linear velocity of this pose.

StringName name<>():StringName

The name of this pose. Pose names are often driven by an action map setup by the user. Godot does suggest a number of pose names that it expects XRInterfaces to implement:

  • root defines a root location, often used for tracked objects that do not have further nodes.

  • aim defines the tip of a controller with the orientation pointing outwards, for example: add your raycasts to this.

  • grip defines the location where the user grips the controller

  • skeleton defines the root location a hand mesh should be placed when using hand tracking and the animated skeleton supplied by the XR runtime.

TrackingConfidence tracking_confidence<>():TrackingConfidence

The tracking confidence for this pose, provides insight on how accurate the spatial positioning of this record is.

Transform3D transform<>():Transform3D

The transform containing the original and transform as reported by the XR runtime.

Transform3D get_adjusted_transform<>():Transform3D

Returns the transform with world scale and our reference frame applied. This is the transform used to position XRNode3D objects.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...