class_staticbody.rst 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the StaticBody.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_StaticBody:
  5. StaticBody
  6. ==========
  7. **Inherits:** :ref:`PhysicsBody<class_physicsbody>` **<** :ref:`CollisionObject<class_collisionobject>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Static body for 3D Physics.
  12. Member Variables
  13. ----------------
  14. .. _class_StaticBody_bounce:
  15. - :ref:`float<class_float>` **bounce** - The body bounciness.
  16. .. _class_StaticBody_constant_angular_velocity:
  17. - :ref:`Vector3<class_vector3>` **constant_angular_velocity** - The constant angular velocity for the body. This does not rotate the body, but affects other bodies that touch it, as if it was in a state of rotation.
  18. .. _class_StaticBody_constant_linear_velocity:
  19. - :ref:`Vector3<class_vector3>` **constant_linear_velocity** - The constant linear velocity for the body. This does not move the body, but affects other bodies that touch it, as if it was in a state of movement.
  20. .. _class_StaticBody_friction:
  21. - :ref:`float<class_float>` **friction** - The body friction, from 0 (frictionless) to 1 (full friction).
  22. Description
  23. -----------
  24. Static body for 3D Physics. A static body is a simple body that is not intended to move. They don't consume any CPU resources in contrast to a RigidBody3D so they are great for scenario collision.
  25. A static body can also be animated by using simulated motion mode. This is useful for implementing functionalities such as moving platforms. When this mode is active the body can be animated and automatically computes linear and angular velocity to apply in that frame and to influence other bodies.
  26. Alternatively, a constant linear or angular velocity can be set for the static body, so even if it doesn't move, it affects other bodies as if it was moving (this is useful for simulating conveyor belts or conveyor wheels).