class_openxrhapticvibration.rst 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/modules/openxr/doc_classes/OpenXRHapticVibration.xml.
  6. .. _class_OpenXRHapticVibration:
  7. OpenXRHapticVibration
  8. =====================
  9. **Inherits:** :ref:`OpenXRHapticBase<class_OpenXRHapticBase>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Vibration haptic feedback.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This haptic feedback resource makes it possible to define a vibration based haptic feedback pulse that can be triggered through actions in the OpenXR action map.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +---------------------------+------------------------------------------------------------------+---------+
  21. | :ref:`float<class_float>` | :ref:`amplitude<class_OpenXRHapticVibration_property_amplitude>` | ``1.0`` |
  22. +---------------------------+------------------------------------------------------------------+---------+
  23. | :ref:`int<class_int>` | :ref:`duration<class_OpenXRHapticVibration_property_duration>` | ``-1`` |
  24. +---------------------------+------------------------------------------------------------------+---------+
  25. | :ref:`float<class_float>` | :ref:`frequency<class_OpenXRHapticVibration_property_frequency>` | ``0.0`` |
  26. +---------------------------+------------------------------------------------------------------+---------+
  27. .. rst-class:: classref-section-separator
  28. ----
  29. .. rst-class:: classref-descriptions-group
  30. Property Descriptions
  31. ---------------------
  32. .. _class_OpenXRHapticVibration_property_amplitude:
  33. .. rst-class:: classref-property
  34. :ref:`float<class_float>` **amplitude** = ``1.0`` :ref:`🔗<class_OpenXRHapticVibration_property_amplitude>`
  35. .. rst-class:: classref-property-setget
  36. - |void| **set_amplitude**\ (\ value\: :ref:`float<class_float>`\ )
  37. - :ref:`float<class_float>` **get_amplitude**\ (\ )
  38. The amplitude of the pulse between ``0.0`` and ``1.0``.
  39. .. rst-class:: classref-item-separator
  40. ----
  41. .. _class_OpenXRHapticVibration_property_duration:
  42. .. rst-class:: classref-property
  43. :ref:`int<class_int>` **duration** = ``-1`` :ref:`🔗<class_OpenXRHapticVibration_property_duration>`
  44. .. rst-class:: classref-property-setget
  45. - |void| **set_duration**\ (\ value\: :ref:`int<class_int>`\ )
  46. - :ref:`int<class_int>` **get_duration**\ (\ )
  47. The duration of the pulse in nanoseconds. Use ``-1`` for a minimum duration pulse for the current XR runtime.
  48. .. rst-class:: classref-item-separator
  49. ----
  50. .. _class_OpenXRHapticVibration_property_frequency:
  51. .. rst-class:: classref-property
  52. :ref:`float<class_float>` **frequency** = ``0.0`` :ref:`🔗<class_OpenXRHapticVibration_property_frequency>`
  53. .. rst-class:: classref-property-setget
  54. - |void| **set_frequency**\ (\ value\: :ref:`float<class_float>`\ )
  55. - :ref:`float<class_float>` **get_frequency**\ (\ )
  56. The frequency of the pulse in Hz. ``0.0`` will let the XR runtime chose an optimal frequency for the device used.
  57. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  58. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  59. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  60. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  61. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  62. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  63. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  64. .. |void| replace:: :abbr:`void (No return value.)`