class_physicsmaterial.rst 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the PhysicsMaterial.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_PhysicsMaterial:
  5. PhysicsMaterial
  6. ===============
  7. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. A material for physics properties.
  12. Properties
  13. ----------
  14. +---------------------------+------------------------------------------------------------+
  15. | :ref:`bool<class_bool>` | :ref:`absorbent<class_PhysicsMaterial_property_absorbent>` |
  16. +---------------------------+------------------------------------------------------------+
  17. | :ref:`float<class_float>` | :ref:`bounce<class_PhysicsMaterial_property_bounce>` |
  18. +---------------------------+------------------------------------------------------------+
  19. | :ref:`float<class_float>` | :ref:`friction<class_PhysicsMaterial_property_friction>` |
  20. +---------------------------+------------------------------------------------------------+
  21. | :ref:`bool<class_bool>` | :ref:`rough<class_PhysicsMaterial_property_rough>` |
  22. +---------------------------+------------------------------------------------------------+
  23. Description
  24. -----------
  25. Provides a means of modifying the collision properties of a :ref:`PhysicsBody<class_PhysicsBody>`.
  26. Property Descriptions
  27. ---------------------
  28. .. _class_PhysicsMaterial_property_absorbent:
  29. - :ref:`bool<class_bool>` **absorbent**
  30. +----------+----------------------+
  31. | *Setter* | set_absorbent(value) |
  32. +----------+----------------------+
  33. | *Getter* | is_absorbent() |
  34. +----------+----------------------+
  35. .. _class_PhysicsMaterial_property_bounce:
  36. - :ref:`float<class_float>` **bounce**
  37. +----------+-------------------+
  38. | *Setter* | set_bounce(value) |
  39. +----------+-------------------+
  40. | *Getter* | get_bounce() |
  41. +----------+-------------------+
  42. The body's bounciness. Default value: ``0``.
  43. .. _class_PhysicsMaterial_property_friction:
  44. - :ref:`float<class_float>` **friction**
  45. +----------+---------------------+
  46. | *Setter* | set_friction(value) |
  47. +----------+---------------------+
  48. | *Getter* | get_friction() |
  49. +----------+---------------------+
  50. The body's friction. Values range from ``0`` (frictionless) to ``1`` (maximum friction). Default value: ``1``.
  51. .. _class_PhysicsMaterial_property_rough:
  52. - :ref:`bool<class_bool>` **rough**
  53. +----------+------------------+
  54. | *Setter* | set_rough(value) |
  55. +----------+------------------+
  56. | *Getter* | is_rough() |
  57. +----------+------------------+