.. 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_PhysicsBody: PhysicsBody =========== **Inherits:** :ref:`CollisionObject` **<** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` **Inherited By:** :ref:`VehicleBody`, :ref:`KinematicBody`, :ref:`StaticBody`, :ref:`RigidBody` **Category:** Core Brief Description ----------------- Base class for different types of Physics bodies. Member Functions ---------------- +--------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_collision_exception_with` **(** :ref:`PhysicsBody` body **)** | +--------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_collision_mask` **(** **)** const | +--------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_collision_mask_bit` **(** :ref:`int` bit **)** const | +--------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_layer_mask` **(** **)** const | +--------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_layer_mask_bit` **(** :ref:`int` bit **)** const | +--------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_collision_exception_with` **(** :ref:`PhysicsBody` body **)** | +--------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_collision_mask` **(** :ref:`int` mask **)** | +--------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_collision_mask_bit` **(** :ref:`int` bit, :ref:`bool` value **)** | +--------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_layer_mask` **(** :ref:`int` mask **)** | +--------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_layer_mask_bit` **(** :ref:`int` bit, :ref:`bool` value **)** | +--------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ Description ----------- PhysicsBody is an abstract base class for implementing a physics body. All PhysicsBody types inherit from it. Member Function Description --------------------------- .. _class_PhysicsBody_add_collision_exception_with: - void **add_collision_exception_with** **(** :ref:`PhysicsBody` body **)** .. _class_PhysicsBody_get_collision_mask: - :ref:`int` **get_collision_mask** **(** **)** const .. _class_PhysicsBody_get_collision_mask_bit: - :ref:`bool` **get_collision_mask_bit** **(** :ref:`int` bit **)** const .. _class_PhysicsBody_get_layer_mask: - :ref:`int` **get_layer_mask** **(** **)** const .. _class_PhysicsBody_get_layer_mask_bit: - :ref:`bool` **get_layer_mask_bit** **(** :ref:`int` bit **)** const .. _class_PhysicsBody_remove_collision_exception_with: - void **remove_collision_exception_with** **(** :ref:`PhysicsBody` body **)** .. _class_PhysicsBody_set_collision_mask: - void **set_collision_mask** **(** :ref:`int` mask **)** .. _class_PhysicsBody_set_collision_mask_bit: - void **set_collision_mask_bit** **(** :ref:`int` bit, :ref:`bool` value **)** .. _class_PhysicsBody_set_layer_mask: - void **set_layer_mask** **(** :ref:`int` mask **)** .. _class_PhysicsBody_set_layer_mask_bit: - void **set_layer_mask_bit** **(** :ref:`int` bit, :ref:`bool` value **)**