:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the PhysicalBone.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_PhysicalBone: PhysicalBone ============ **Inherits:** :ref:`PhysicsBody` **<** :ref:`CollisionObject` **<** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Properties ---------- +-----------------------------------------------+-----------------------------------------------------------------+ | :ref:`Transform` | :ref:`body_offset` | +-----------------------------------------------+-----------------------------------------------------------------+ | :ref:`float` | :ref:`bounce` | +-----------------------------------------------+-----------------------------------------------------------------+ | :ref:`float` | :ref:`friction` | +-----------------------------------------------+-----------------------------------------------------------------+ | :ref:`float` | :ref:`gravity_scale` | +-----------------------------------------------+-----------------------------------------------------------------+ | :ref:`Transform` | :ref:`joint_offset` | +-----------------------------------------------+-----------------------------------------------------------------+ | :ref:`JointType` | :ref:`joint_type` | +-----------------------------------------------+-----------------------------------------------------------------+ | :ref:`float` | :ref:`mass` | +-----------------------------------------------+-----------------------------------------------------------------+ | :ref:`float` | :ref:`weight` | +-----------------------------------------------+-----------------------------------------------------------------+ Methods ------- +-------------------------+-------------------------------------------------------------------------------------------+ | :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` **(** **)** | +-------------------------+-------------------------------------------------------------------------------------------+ Enumerations ------------ .. _enum_PhysicalBone_JointType: .. _class_PhysicalBone_constant_JOINT_TYPE_NONE: .. _class_PhysicalBone_constant_JOINT_TYPE_PIN: .. _class_PhysicalBone_constant_JOINT_TYPE_CONE: .. _class_PhysicalBone_constant_JOINT_TYPE_HINGE: .. _class_PhysicalBone_constant_JOINT_TYPE_SLIDER: .. _class_PhysicalBone_constant_JOINT_TYPE_6DOF: enum **JointType**: - **JOINT_TYPE_NONE** = **0** - **JOINT_TYPE_PIN** = **1** - **JOINT_TYPE_CONE** = **2** - **JOINT_TYPE_HINGE** = **3** - **JOINT_TYPE_SLIDER** = **4** - **JOINT_TYPE_6DOF** = **5** Property Descriptions --------------------- .. _class_PhysicalBone_property_body_offset: - :ref:`Transform` **body_offset** +----------+------------------------+ | *Setter* | set_body_offset(value) | +----------+------------------------+ | *Getter* | get_body_offset() | +----------+------------------------+ ---- .. _class_PhysicalBone_property_bounce: - :ref:`float` **bounce** +----------+-------------------+ | *Setter* | set_bounce(value) | +----------+-------------------+ | *Getter* | get_bounce() | +----------+-------------------+ ---- .. _class_PhysicalBone_property_friction: - :ref:`float` **friction** +----------+---------------------+ | *Setter* | set_friction(value) | +----------+---------------------+ | *Getter* | get_friction() | +----------+---------------------+ ---- .. _class_PhysicalBone_property_gravity_scale: - :ref:`float` **gravity_scale** +----------+--------------------------+ | *Setter* | set_gravity_scale(value) | +----------+--------------------------+ | *Getter* | get_gravity_scale() | +----------+--------------------------+ ---- .. _class_PhysicalBone_property_joint_offset: - :ref:`Transform` **joint_offset** +----------+-------------------------+ | *Setter* | set_joint_offset(value) | +----------+-------------------------+ | *Getter* | get_joint_offset() | +----------+-------------------------+ ---- .. _class_PhysicalBone_property_joint_type: - :ref:`JointType` **joint_type** +----------+-----------------------+ | *Setter* | set_joint_type(value) | +----------+-----------------------+ | *Getter* | get_joint_type() | +----------+-----------------------+ ---- .. _class_PhysicalBone_property_mass: - :ref:`float` **mass** +----------+-----------------+ | *Setter* | set_mass(value) | +----------+-----------------+ | *Getter* | get_mass() | +----------+-----------------+ ---- .. _class_PhysicalBone_property_weight: - :ref:`float` **weight** +----------+-------------------+ | *Setter* | set_weight(value) | +----------+-------------------+ | *Getter* | get_weight() | +----------+-------------------+ Method Descriptions ------------------- .. _class_PhysicalBone_method_get_bone_id: - :ref:`int` **get_bone_id** **(** **)** const ---- .. _class_PhysicalBone_method_get_simulate_physics: - :ref:`bool` **get_simulate_physics** **(** **)** ---- .. _class_PhysicalBone_method_is_simulating_physics: - :ref:`bool` **is_simulating_physics** **(** **)** ---- .. _class_PhysicalBone_method_is_static_body: - :ref:`bool` **is_static_body** **(** **)**