.. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/docs/gdscript/doc/classes/PhysicsBody3D.xml. .. _class_PhysicsBody3D: PhysicsBody3D ============= **Inherits:** :ref:`CollisionObject3D` **<** :ref:`Node3D` **<** :ref:`Node` **<** :ref:`Object` **Inherited By:** :ref:`CharacterBody3D`, :ref:`PhysicalBone3D`, :ref:`RigidBody3D`, :ref:`StaticBody3D` .. container:: contribute There is currently no description for this class. Please help us by :ref:`contributing one `! .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-------------------------+------------------------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`axis_lock_angular_x` | ``false`` | +-------------------------+------------------------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`axis_lock_angular_y` | ``false`` | +-------------------------+------------------------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`axis_lock_angular_z` | ``false`` | +-------------------------+------------------------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`axis_lock_linear_x` | ``false`` | +-------------------------+------------------------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`axis_lock_linear_y` | ``false`` | +-------------------------+------------------------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`axis_lock_linear_z` | ``false`` | +-------------------------+------------------------------------------------------------------------------+-----------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +---------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_collision_exception_with` **(** :ref:`Node` body **)** | +---------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_axis_lock` **(** :ref:`BodyAxis` axis **)** |const| | +---------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PhysicsBody3D[]` | :ref:`get_collision_exceptions` **(** **)** | +---------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_gravity` **(** **)** |const| | +---------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`KinematicCollision3D` | :ref:`move_and_collide` **(** :ref:`Vector3` motion, :ref:`bool` test_only=false, :ref:`float` safe_margin=0.001, :ref:`bool` recovery_as_collision=false, :ref:`int` max_collisions=1 **)** | +---------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_collision_exception_with` **(** :ref:`Node` body **)** | +---------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_axis_lock` **(** :ref:`BodyAxis` axis, :ref:`bool` lock **)** | +---------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`test_move` **(** :ref:`Transform3D` from, :ref:`Vector3` motion, :ref:`KinematicCollision3D` collision=null, :ref:`float` safe_margin=0.001, :ref:`bool` recovery_as_collision=false, :ref:`int` max_collisions=1 **)** | +---------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_PhysicsBody3D_property_axis_lock_angular_x: .. rst-class:: classref-property :ref:`bool` **axis_lock_angular_x** = ``false`` .. rst-class:: classref-property-setget - void **set_axis_lock** **(** :ref:`BodyAxis` axis, :ref:`bool` lock **)** - :ref:`bool` **get_axis_lock** **(** :ref:`BodyAxis` axis **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsBody3D_property_axis_lock_angular_y: .. rst-class:: classref-property :ref:`bool` **axis_lock_angular_y** = ``false`` .. rst-class:: classref-property-setget - void **set_axis_lock** **(** :ref:`BodyAxis` axis, :ref:`bool` lock **)** - :ref:`bool` **get_axis_lock** **(** :ref:`BodyAxis` axis **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsBody3D_property_axis_lock_angular_z: .. rst-class:: classref-property :ref:`bool` **axis_lock_angular_z** = ``false`` .. rst-class:: classref-property-setget - void **set_axis_lock** **(** :ref:`BodyAxis` axis, :ref:`bool` lock **)** - :ref:`bool` **get_axis_lock** **(** :ref:`BodyAxis` axis **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsBody3D_property_axis_lock_linear_x: .. rst-class:: classref-property :ref:`bool` **axis_lock_linear_x** = ``false`` .. rst-class:: classref-property-setget - void **set_axis_lock** **(** :ref:`BodyAxis` axis, :ref:`bool` lock **)** - :ref:`bool` **get_axis_lock** **(** :ref:`BodyAxis` axis **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsBody3D_property_axis_lock_linear_y: .. rst-class:: classref-property :ref:`bool` **axis_lock_linear_y** = ``false`` .. rst-class:: classref-property-setget - void **set_axis_lock** **(** :ref:`BodyAxis` axis, :ref:`bool` lock **)** - :ref:`bool` **get_axis_lock** **(** :ref:`BodyAxis` axis **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsBody3D_property_axis_lock_linear_z: .. rst-class:: classref-property :ref:`bool` **axis_lock_linear_z** = ``false`` .. rst-class:: classref-property-setget - void **set_axis_lock** **(** :ref:`BodyAxis` axis, :ref:`bool` lock **)** - :ref:`bool` **get_axis_lock** **(** :ref:`BodyAxis` axis **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_PhysicsBody3D_method_add_collision_exception_with: .. rst-class:: classref-method void **add_collision_exception_with** **(** :ref:`Node` body **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsBody3D_method_get_axis_lock: .. rst-class:: classref-method :ref:`bool` **get_axis_lock** **(** :ref:`BodyAxis` axis **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsBody3D_method_get_collision_exceptions: .. rst-class:: classref-method :ref:`PhysicsBody3D[]` **get_collision_exceptions** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsBody3D_method_get_gravity: .. rst-class:: classref-method :ref:`Vector3` **get_gravity** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsBody3D_method_move_and_collide: .. rst-class:: classref-method :ref:`KinematicCollision3D` **move_and_collide** **(** :ref:`Vector3` motion, :ref:`bool` test_only=false, :ref:`float` safe_margin=0.001, :ref:`bool` recovery_as_collision=false, :ref:`int` max_collisions=1 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsBody3D_method_remove_collision_exception_with: .. rst-class:: classref-method void **remove_collision_exception_with** **(** :ref:`Node` body **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsBody3D_method_set_axis_lock: .. rst-class:: classref-method void **set_axis_lock** **(** :ref:`BodyAxis` axis, :ref:`bool` lock **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsBody3D_method_test_move: .. rst-class:: classref-method :ref:`bool` **test_move** **(** :ref:`Transform3D` from, :ref:`Vector3` motion, :ref:`KinematicCollision3D` collision=null, :ref:`float` safe_margin=0.001, :ref:`bool` recovery_as_collision=false, :ref:`int` max_collisions=1 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`