class_staticbody.rst 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_StaticBody:
  4. StaticBody
  5. ==========
  6. **Inherits:** :ref:`PhysicsBody<class_physicsbody>` **<** :ref:`CollisionObject<class_collisionobject>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. PhysicsBody for static collision objects.
  11. Member Functions
  12. ----------------
  13. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  14. | void | :ref:`set_constant_linear_velocity<class_StaticBody_set_constant_linear_velocity>` **(** :ref:`Vector3<class_vector3>` vel **)** |
  15. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  16. | void | :ref:`set_constant_angular_velocity<class_StaticBody_set_constant_angular_velocity>` **(** :ref:`Vector3<class_vector3>` vel **)** |
  17. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`Vector3<class_vector3>` | :ref:`get_constant_linear_velocity<class_StaticBody_get_constant_linear_velocity>` **(** **)** const |
  19. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`Vector3<class_vector3>` | :ref:`get_constant_angular_velocity<class_StaticBody_get_constant_angular_velocity>` **(** **)** const |
  21. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  22. | void | :ref:`set_friction<class_StaticBody_set_friction>` **(** :ref:`float<class_float>` friction **)** |
  23. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`float<class_float>` | :ref:`get_friction<class_StaticBody_get_friction>` **(** **)** const |
  25. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  26. | void | :ref:`set_bounce<class_StaticBody_set_bounce>` **(** :ref:`float<class_float>` bounce **)** |
  27. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`float<class_float>` | :ref:`get_bounce<class_StaticBody_get_bounce>` **(** **)** const |
  29. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  30. Description
  31. -----------
  32. StaticBody implements a static collision :ref:`Node<class_node>`, by utilizing a rigid body in the :ref:`PhysicsServer<class_physicsserver>`. Static bodies are used for static collision. For more information on physics body nodes, see :ref:`PhysicsBody<class_physicsbody>`.
  33. Member Function Description
  34. ---------------------------
  35. .. _class_StaticBody_set_constant_linear_velocity:
  36. - void **set_constant_linear_velocity** **(** :ref:`Vector3<class_vector3>` vel **)**
  37. .. _class_StaticBody_set_constant_angular_velocity:
  38. - void **set_constant_angular_velocity** **(** :ref:`Vector3<class_vector3>` vel **)**
  39. .. _class_StaticBody_get_constant_linear_velocity:
  40. - :ref:`Vector3<class_vector3>` **get_constant_linear_velocity** **(** **)** const
  41. .. _class_StaticBody_get_constant_angular_velocity:
  42. - :ref:`Vector3<class_vector3>` **get_constant_angular_velocity** **(** **)** const
  43. .. _class_StaticBody_set_friction:
  44. - void **set_friction** **(** :ref:`float<class_float>` friction **)**
  45. .. _class_StaticBody_get_friction:
  46. - :ref:`float<class_float>` **get_friction** **(** **)** const
  47. .. _class_StaticBody_set_bounce:
  48. - void **set_bounce** **(** :ref:`float<class_float>` bounce **)**
  49. .. _class_StaticBody_get_bounce:
  50. - :ref:`float<class_float>` **get_bounce** **(** **)** const