.. 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:`set_layer_mask` **(** :ref:`int` mask **)** | +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_layer_mask` **(** **)** const | +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_collision_exception_with` **(** :ref:`PhysicsBody` body **)** | +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_collision_exception_with` **(** :ref:`PhysicsBody` body **)** | +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ Description ----------- PhysicsBody is an abstract base class for implementing a physics body. All PhysicsBody types inherit from it. Member Function Description --------------------------- .. _class_PhysicsBody_set_layer_mask: - void **set_layer_mask** **(** :ref:`int` mask **)** .. _class_PhysicsBody_get_layer_mask: - :ref:`int` **get_layer_mask** **(** **)** const .. _class_PhysicsBody_add_collision_exception_with: - void **add_collision_exception_with** **(** :ref:`PhysicsBody` body **)** .. _class_PhysicsBody_remove_collision_exception_with: - void **remove_collision_exception_with** **(** :ref:`PhysicsBody` body **)**