:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/PhysicalBone.xml. .. _class_PhysicalBone: PhysicalBone ============ **Inherits:** :ref:`PhysicsBody` **<** :ref:`CollisionObject` **<** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` .. rst-class:: classref-introduction-group Description ----------- **Warning:** With a non-uniform scale this node will probably not function as expected. Please make sure to keep its scale uniform (i.e. the same on all axes), and change the size(s) of its collision shape(s) instead. .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+ | :ref:`Transform` | :ref:`body_offset` | ``Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )`` | +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+ | :ref:`float` | :ref:`bounce` | ``0.0`` | +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+ | :ref:`float` | :ref:`friction` | ``1.0`` | +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+ | :ref:`float` | :ref:`gravity_scale` | ``1.0`` | +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+ | :ref:`Transform` | :ref:`joint_offset` | ``Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )`` | +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+ | :ref:`JointType` | :ref:`joint_type` | ``0`` | +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+ | :ref:`float` | :ref:`mass` | ``1.0`` | +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+ | :ref:`float` | :ref:`weight` | ``9.8`` | +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`apply_central_impulse` **(** :ref:`Vector3` impulse **)** | +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`apply_impulse` **(** :ref:`Vector3` position, :ref:`Vector3` impulse **)** | +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_bone_id` **(** **)** |const| | +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_simulate_physics` **(** **)** | +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_simulating_physics` **(** **)** | +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_static_body` **(** **)** | +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerations ------------ .. _enum_PhysicalBone_JointType: .. rst-class:: classref-enumeration enum **JointType**: .. _class_PhysicalBone_constant_JOINT_TYPE_NONE: .. rst-class:: classref-enumeration-constant :ref:`JointType` **JOINT_TYPE_NONE** = ``0`` .. _class_PhysicalBone_constant_JOINT_TYPE_PIN: .. rst-class:: classref-enumeration-constant :ref:`JointType` **JOINT_TYPE_PIN** = ``1`` .. _class_PhysicalBone_constant_JOINT_TYPE_CONE: .. rst-class:: classref-enumeration-constant :ref:`JointType` **JOINT_TYPE_CONE** = ``2`` .. _class_PhysicalBone_constant_JOINT_TYPE_HINGE: .. rst-class:: classref-enumeration-constant :ref:`JointType` **JOINT_TYPE_HINGE** = ``3`` .. _class_PhysicalBone_constant_JOINT_TYPE_SLIDER: .. rst-class:: classref-enumeration-constant :ref:`JointType` **JOINT_TYPE_SLIDER** = ``4`` .. _class_PhysicalBone_constant_JOINT_TYPE_6DOF: .. rst-class:: classref-enumeration-constant :ref:`JointType` **JOINT_TYPE_6DOF** = ``5`` .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_PhysicalBone_property_body_offset: .. rst-class:: classref-property :ref:`Transform` **body_offset** = ``Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )`` .. rst-class:: classref-property-setget - void **set_body_offset** **(** :ref:`Transform` value **)** - :ref:`Transform` **get_body_offset** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicalBone_property_bounce: .. rst-class:: classref-property :ref:`float` **bounce** = ``0.0`` .. rst-class:: classref-property-setget - void **set_bounce** **(** :ref:`float` value **)** - :ref:`float` **get_bounce** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicalBone_property_friction: .. rst-class:: classref-property :ref:`float` **friction** = ``1.0`` .. rst-class:: classref-property-setget - void **set_friction** **(** :ref:`float` value **)** - :ref:`float` **get_friction** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicalBone_property_gravity_scale: .. rst-class:: classref-property :ref:`float` **gravity_scale** = ``1.0`` .. rst-class:: classref-property-setget - void **set_gravity_scale** **(** :ref:`float` value **)** - :ref:`float` **get_gravity_scale** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicalBone_property_joint_offset: .. rst-class:: classref-property :ref:`Transform` **joint_offset** = ``Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )`` .. rst-class:: classref-property-setget - void **set_joint_offset** **(** :ref:`Transform` value **)** - :ref:`Transform` **get_joint_offset** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicalBone_property_joint_type: .. rst-class:: classref-property :ref:`JointType` **joint_type** = ``0`` .. rst-class:: classref-property-setget - void **set_joint_type** **(** :ref:`JointType` value **)** - :ref:`JointType` **get_joint_type** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicalBone_property_mass: .. rst-class:: classref-property :ref:`float` **mass** = ``1.0`` .. rst-class:: classref-property-setget - void **set_mass** **(** :ref:`float` value **)** - :ref:`float` **get_mass** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicalBone_property_weight: .. rst-class:: classref-property :ref:`float` **weight** = ``9.8`` .. rst-class:: classref-property-setget - void **set_weight** **(** :ref:`float` value **)** - :ref:`float` **get_weight** **(** **)** .. 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_PhysicalBone_method_apply_central_impulse: .. rst-class:: classref-method void **apply_central_impulse** **(** :ref:`Vector3` impulse **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicalBone_method_apply_impulse: .. rst-class:: classref-method void **apply_impulse** **(** :ref:`Vector3` position, :ref:`Vector3` impulse **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicalBone_method_get_bone_id: .. rst-class:: classref-method :ref:`int` **get_bone_id** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicalBone_method_get_simulate_physics: .. rst-class:: classref-method :ref:`bool` **get_simulate_physics** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicalBone_method_is_simulating_physics: .. rst-class:: classref-method :ref:`bool` **is_simulating_physics** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicalBone_method_is_static_body: .. rst-class:: classref-method :ref:`bool` **is_static_body** **(** **)** .. 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.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`