XRNode3D.xml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="XRNode3D" inherits="Node3D" version="4.0">
  3. <brief_description>
  4. A spatial node that has its position automatically updated by the [XRServer].
  5. </brief_description>
  6. <description>
  7. This node can be bound to a specific pose of a [XRPositionalTracker] and will automatically have its [member Node3D.transform] updated by the [XRServer]. Nodes of this type must be added as children of the [XROrigin3D] node.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="get_has_tracking_data" qualifiers="const">
  13. <return type="bool" />
  14. <description>
  15. Returns [code]true[/code] if the [member tracker] has current tracking data for the [member pose] being tracked.
  16. </description>
  17. </method>
  18. <method name="get_is_active" qualifiers="const">
  19. <return type="bool" />
  20. <description>
  21. Returns [code]true[/code] if the [member tracker] has been registered and the [member pose] is being tracked.
  22. </description>
  23. </method>
  24. <method name="get_pose">
  25. <return type="XRPose" />
  26. <description>
  27. Returns the [XRPose] containing the current state of the pose being tracked. This gives access to additional properties of this pose.
  28. </description>
  29. </method>
  30. <method name="trigger_haptic_pulse">
  31. <return type="void" />
  32. <argument index="0" name="action_name" type="String" />
  33. <argument index="1" name="frequency" type="float" />
  34. <argument index="2" name="amplitude" type="float" />
  35. <argument index="3" name="duration_sec" type="float" />
  36. <argument index="4" name="delay_sec" type="float" />
  37. <description>
  38. Triggers a haptic pulse on a device associated with this interface.
  39. [code]action_name[/code] is the name of the action for this pulse.
  40. </description>
  41. </method>
  42. </methods>
  43. <members>
  44. <member name="pose" type="StringName" setter="set_pose_name" getter="get_pose_name" default="&amp;&quot;default&quot;">
  45. The name of the pose we're bound to. Which poses a tracker supports is not known during design time.
  46. Godot defines number of standard pose names such as [code]aim[/code] and [code]grip[/code] but other may be configured within a given [XRInterface].
  47. </member>
  48. <member name="tracker" type="StringName" setter="set_tracker" getter="get_tracker" default="&amp;&quot;&quot;">
  49. The name of the tracker we're bound to. Which trackers are available is not known during design time.
  50. Godot defines a number of standard trackers such as [code]left_hand[/code] and [code]right_hand[/code] but others may be configured within a given [XRInterface].
  51. </member>
  52. </members>
  53. </class>