mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 19:29:06 +00:00
55 lines
2.8 KiB
ReStructuredText
55 lines
2.8 KiB
ReStructuredText
.. _class_PhysicsBody:
|
|
|
|
PhysicsBody
|
|
===========
|
|
|
|
**Inherits:** :ref:`CollisionObject<class_collisionobject>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
|
|
|
|
**Inherited By:** :ref:`VehicleBody<class_vehiclebody>`, :ref:`KinematicBody<class_kinematicbody>`, :ref:`StaticBody<class_staticbody>`, :ref:`RigidBody<class_rigidbody>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Base class for different types of Physics bodies.
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_layer_mask<class_PhysicsBody_set_layer_mask>` **(** :ref:`int<class_int>` mask **)** |
|
|
+------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_layer_mask<class_PhysicsBody_get_layer_mask>` **(** **)** const |
|
|
+------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`add_collision_exception_with<class_PhysicsBody_add_collision_exception_with>` **(** :ref:`PhysicsBody<class_physicsbody>` body **)** |
|
|
+------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`remove_collision_exception_with<class_PhysicsBody_remove_collision_exception_with>` **(** :ref:`PhysicsBody<class_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<class_int>` mask **)**
|
|
|
|
.. _class_PhysicsBody_get_layer_mask:
|
|
|
|
- :ref:`int<class_int>` **get_layer_mask** **(** **)** const
|
|
|
|
.. _class_PhysicsBody_add_collision_exception_with:
|
|
|
|
- void **add_collision_exception_with** **(** :ref:`PhysicsBody<class_physicsbody>` body **)**
|
|
|
|
.. _class_PhysicsBody_remove_collision_exception_with:
|
|
|
|
- void **remove_collision_exception_with** **(** :ref:`PhysicsBody<class_physicsbody>` body **)**
|
|
|
|
|