.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_StaticBody: StaticBody ========== **Inherits:** :ref:`PhysicsBody` **<** :ref:`CollisionObject` **<** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- PhysicsBody for static collision objects. Member Functions ---------------- +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_constant_linear_velocity` **(** :ref:`Vector3` vel **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_constant_angular_velocity` **(** :ref:`Vector3` vel **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_constant_linear_velocity` **(** **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_constant_angular_velocity` **(** **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_friction` **(** :ref:`float` friction **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_friction` **(** **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_bounce` **(** :ref:`float` bounce **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_bounce` **(** **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ Description ----------- StaticBody implements a static collision :ref:`Node`, by utilizing a rigid body in the :ref:`PhysicsServer`. Static bodies are used for static collision. For more information on physics body nodes, see :ref:`PhysicsBody`. Member Function Description --------------------------- .. _class_StaticBody_set_constant_linear_velocity: - void **set_constant_linear_velocity** **(** :ref:`Vector3` vel **)** .. _class_StaticBody_set_constant_angular_velocity: - void **set_constant_angular_velocity** **(** :ref:`Vector3` vel **)** .. _class_StaticBody_get_constant_linear_velocity: - :ref:`Vector3` **get_constant_linear_velocity** **(** **)** const .. _class_StaticBody_get_constant_angular_velocity: - :ref:`Vector3` **get_constant_angular_velocity** **(** **)** const .. _class_StaticBody_set_friction: - void **set_friction** **(** :ref:`float` friction **)** .. _class_StaticBody_get_friction: - :ref:`float` **get_friction** **(** **)** const .. _class_StaticBody_set_bounce: - void **set_bounce** **(** :ref:`float` bounce **)** .. _class_StaticBody_get_bounce: - :ref:`float` **get_bounce** **(** **)** const