:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/SpringBoneCollision3D.xml. .. _class_SpringBoneCollision3D: SpringBoneCollision3D ===================== **Inherits:** :ref:`Node3D` **<** :ref:`Node` **<** :ref:`Object` **Inherited By:** :ref:`SpringBoneCollisionCapsule3D`, :ref:`SpringBoneCollisionPlane3D`, :ref:`SpringBoneCollisionSphere3D` A base class of the collision that interacts with :ref:`SpringBoneSimulator3D`. .. rst-class:: classref-introduction-group Description ----------- A collision can be a child of :ref:`SpringBoneSimulator3D`. If it is not a child of :ref:`SpringBoneSimulator3D`, it has no effect. The colliding and sliding are done in the :ref:`SpringBoneSimulator3D`'s modification process in order of its collision list which is set by :ref:`SpringBoneSimulator3D.set_collision_path()`. If :ref:`SpringBoneSimulator3D.are_all_child_collisions_enabled()` is ``true``, the order matches :ref:`SceneTree`. If :ref:`bone` is set, it synchronizes with the bone pose of the ancestor :ref:`Skeleton3D`, which is done in before the :ref:`SpringBoneSimulator3D`'s modification process as the pre-process. \ **Warning:** A scaled **SpringBoneCollision3D** will likely not behave as expected. Make sure that the parent :ref:`Skeleton3D` and its bones are not scaled. .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-------------------------------------+------------------------------------------------------------------------------+--------+ | :ref:`int` | :ref:`bone` | ``-1`` | +-------------------------------------+------------------------------------------------------------------------------+--------+ | :ref:`String` | :ref:`bone_name` | ``""`` | +-------------------------------------+------------------------------------------------------------------------------+--------+ | :ref:`Vector3` | :ref:`position_offset` | | +-------------------------------------+------------------------------------------------------------------------------+--------+ | :ref:`Quaternion` | :ref:`rotation_offset` | | +-------------------------------------+------------------------------------------------------------------------------+--------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-------------------------------------+------------------------------------------------------------------------------------+ | :ref:`Skeleton3D` | :ref:`get_skeleton`\ (\ ) |const| | +-------------------------------------+------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_SpringBoneCollision3D_property_bone: .. rst-class:: classref-property :ref:`int` **bone** = ``-1`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_bone**\ (\ value\: :ref:`int`\ ) - :ref:`int` **get_bone**\ (\ ) The index of the attached bone. .. rst-class:: classref-item-separator ---- .. _class_SpringBoneCollision3D_property_bone_name: .. rst-class:: classref-property :ref:`String` **bone_name** = ``""`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_bone_name**\ (\ value\: :ref:`String`\ ) - :ref:`String` **get_bone_name**\ (\ ) The name of the attached bone. .. rst-class:: classref-item-separator ---- .. _class_SpringBoneCollision3D_property_position_offset: .. rst-class:: classref-property :ref:`Vector3` **position_offset** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_position_offset**\ (\ value\: :ref:`Vector3`\ ) - :ref:`Vector3` **get_position_offset**\ (\ ) The offset of the position from :ref:`Skeleton3D`'s :ref:`bone` pose position. .. rst-class:: classref-item-separator ---- .. _class_SpringBoneCollision3D_property_rotation_offset: .. rst-class:: classref-property :ref:`Quaternion` **rotation_offset** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_rotation_offset**\ (\ value\: :ref:`Quaternion`\ ) - :ref:`Quaternion` **get_rotation_offset**\ (\ ) The offset of the rotation from :ref:`Skeleton3D`'s :ref:`bone` pose rotation. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_SpringBoneCollision3D_method_get_skeleton: .. rst-class:: classref-method :ref:`Skeleton3D` **get_skeleton**\ (\ ) |const| :ref:`🔗` Get parent :ref:`Skeleton3D` node of the parent :ref:`SpringBoneSimulator3D` if found. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |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.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`