: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/LimitAngularVelocityModifier3D.xml. .. _class_LimitAngularVelocityModifier3D: LimitAngularVelocityModifier3D ============================== **Inherits:** :ref:`SkeletonModifier3D` **<** :ref:`Node3D` **<** :ref:`Node` **<** :ref:`Object` Limit bone rotation angular velocity. .. rst-class:: classref-introduction-group Description ----------- This modifier limits bone rotation angular velocity by comparing poses between previous and current frame. You can add bone chains by specifying their root and end bones, then add the bones between them to a list. Modifier processes either that list or the bones excluding those in the list depending on the option :ref:`exclude`. .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +---------------------------+-------------------------------------------------------------------------------------------------+---------------+ | :ref:`int` | :ref:`chain_count` | ``0`` | +---------------------------+-------------------------------------------------------------------------------------------------+---------------+ | :ref:`bool` | :ref:`exclude` | ``false`` | +---------------------------+-------------------------------------------------------------------------------------------------+---------------+ | :ref:`int` | :ref:`joint_count` | ``0`` | +---------------------------+-------------------------------------------------------------------------------------------------+---------------+ | :ref:`float` | :ref:`max_angular_velocity` | ``6.2831855`` | +---------------------------+-------------------------------------------------------------------------------------------------+---------------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`clear_chains`\ (\ ) | +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_end_bone`\ (\ index\: :ref:`int`\ ) |const| | +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_end_bone_name`\ (\ index\: :ref:`int`\ ) |const| | +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_root_bone`\ (\ index\: :ref:`int`\ ) |const| | +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_root_bone_name`\ (\ index\: :ref:`int`\ ) |const| | +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`reset`\ (\ ) | +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_end_bone`\ (\ index\: :ref:`int`, bone\: :ref:`int`\ ) | +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_end_bone_name`\ (\ index\: :ref:`int`, bone_name\: :ref:`String`\ ) | +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_root_bone`\ (\ index\: :ref:`int`, bone\: :ref:`int`\ ) | +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_root_bone_name`\ (\ index\: :ref:`int`, bone_name\: :ref:`String`\ ) | +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_LimitAngularVelocityModifier3D_property_chain_count: .. rst-class:: classref-property :ref:`int` **chain_count** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_chain_count**\ (\ value\: :ref:`int`\ ) - :ref:`int` **get_chain_count**\ (\ ) The number of chains. .. rst-class:: classref-item-separator ---- .. _class_LimitAngularVelocityModifier3D_property_exclude: .. rst-class:: classref-property :ref:`bool` **exclude** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_exclude**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_exclude**\ (\ ) If ``true``, the modifier processes bones not included in the bone list. If ``false``, the bones processed by the modifier are equal to the bone list. .. rst-class:: classref-item-separator ---- .. _class_LimitAngularVelocityModifier3D_property_joint_count: .. rst-class:: classref-property :ref:`int` **joint_count** = ``0`` :ref:`🔗` The number of joints in the list which created by chains dynamically. .. rst-class:: classref-item-separator ---- .. _class_LimitAngularVelocityModifier3D_property_max_angular_velocity: .. rst-class:: classref-property :ref:`float` **max_angular_velocity** = ``6.2831855`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_max_angular_velocity**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_max_angular_velocity**\ (\ ) The maximum angular velocity per second. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_LimitAngularVelocityModifier3D_method_clear_chains: .. rst-class:: classref-method |void| **clear_chains**\ (\ ) :ref:`🔗` Clear all chains. .. rst-class:: classref-item-separator ---- .. _class_LimitAngularVelocityModifier3D_method_get_end_bone: .. rst-class:: classref-method :ref:`int` **get_end_bone**\ (\ index\: :ref:`int`\ ) |const| :ref:`🔗` Returns the end bone index of the bone chain. .. rst-class:: classref-item-separator ---- .. _class_LimitAngularVelocityModifier3D_method_get_end_bone_name: .. rst-class:: classref-method :ref:`String` **get_end_bone_name**\ (\ index\: :ref:`int`\ ) |const| :ref:`🔗` Returns the end bone name of the bone chain. .. rst-class:: classref-item-separator ---- .. _class_LimitAngularVelocityModifier3D_method_get_root_bone: .. rst-class:: classref-method :ref:`int` **get_root_bone**\ (\ index\: :ref:`int`\ ) |const| :ref:`🔗` Returns the root bone index of the bone chain. .. rst-class:: classref-item-separator ---- .. _class_LimitAngularVelocityModifier3D_method_get_root_bone_name: .. rst-class:: classref-method :ref:`String` **get_root_bone_name**\ (\ index\: :ref:`int`\ ) |const| :ref:`🔗` Returns the root bone name of the bone chain. .. rst-class:: classref-item-separator ---- .. _class_LimitAngularVelocityModifier3D_method_reset: .. rst-class:: classref-method |void| **reset**\ (\ ) :ref:`🔗` Sets the reference pose for angle comparison to the current pose with the influence of constraints removed. This function is automatically triggered when joints change or upon activation. .. rst-class:: classref-item-separator ---- .. _class_LimitAngularVelocityModifier3D_method_set_end_bone: .. rst-class:: classref-method |void| **set_end_bone**\ (\ index\: :ref:`int`, bone\: :ref:`int`\ ) :ref:`🔗` Sets the end bone index of the bone chain. .. rst-class:: classref-item-separator ---- .. _class_LimitAngularVelocityModifier3D_method_set_end_bone_name: .. rst-class:: classref-method |void| **set_end_bone_name**\ (\ index\: :ref:`int`, bone_name\: :ref:`String`\ ) :ref:`🔗` Sets the end bone name of the bone chain. \ **Note:** End bone must be the root bone or a child of the root bone. .. rst-class:: classref-item-separator ---- .. _class_LimitAngularVelocityModifier3D_method_set_root_bone: .. rst-class:: classref-method |void| **set_root_bone**\ (\ index\: :ref:`int`, bone\: :ref:`int`\ ) :ref:`🔗` Sets the root bone index of the bone chain. .. rst-class:: classref-item-separator ---- .. _class_LimitAngularVelocityModifier3D_method_set_root_bone_name: .. rst-class:: classref-method |void| **set_root_bone_name**\ (\ index\: :ref:`int`, bone_name\: :ref:`String`\ ) :ref:`🔗` Sets the root bone name of the bone chain. .. |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.)`