123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720 |
- :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/LookAtModifier3D.xml.
- .. _class_LookAtModifier3D:
- LookAtModifier3D
- ================
- **Inherits:** :ref:`SkeletonModifier3D<class_SkeletonModifier3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
- The **LookAtModifier3D** rotates a bone to look at a target.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- This :ref:`SkeletonModifier3D<class_SkeletonModifier3D>` rotates a bone to look at a target. This is helpful for moving a character's head to look at the player, rotating a turret to look at a target, or any other case where you want to make a bone rotate towards something quickly and easily.
- When applying multiple **LookAtModifier3D**\ s, the **LookAtModifier3D** assigned to the parent bone must be put above the **LookAtModifier3D** assigned to the child bone in the list in order for the child bone results to be correct.
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`int<class_int>` | :ref:`bone<class_LookAtModifier3D_property_bone>` | ``-1`` |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`String<class_String>` | :ref:`bone_name<class_LookAtModifier3D_property_bone_name>` | ``""`` |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`float<class_float>` | :ref:`duration<class_LookAtModifier3D_property_duration>` | ``0.0`` |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`EaseType<enum_Tween_EaseType>` | :ref:`ease_type<class_LookAtModifier3D_property_ease_type>` | ``0`` |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`BoneAxis<enum_SkeletonModifier3D_BoneAxis>` | :ref:`forward_axis<class_LookAtModifier3D_property_forward_axis>` | ``4`` |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`int<class_int>` | :ref:`origin_bone<class_LookAtModifier3D_property_origin_bone>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`String<class_String>` | :ref:`origin_bone_name<class_LookAtModifier3D_property_origin_bone_name>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`NodePath<class_NodePath>` | :ref:`origin_external_node<class_LookAtModifier3D_property_origin_external_node>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`OriginFrom<enum_LookAtModifier3D_OriginFrom>` | :ref:`origin_from<class_LookAtModifier3D_property_origin_from>` | ``0`` |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`Vector3<class_Vector3>` | :ref:`origin_offset<class_LookAtModifier3D_property_origin_offset>` | ``Vector3(0, 0, 0)`` |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`float<class_float>` | :ref:`origin_safe_margin<class_LookAtModifier3D_property_origin_safe_margin>` | ``0.1`` |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`float<class_float>` | :ref:`primary_damp_threshold<class_LookAtModifier3D_property_primary_damp_threshold>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`float<class_float>` | :ref:`primary_limit_angle<class_LookAtModifier3D_property_primary_limit_angle>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`float<class_float>` | :ref:`primary_negative_damp_threshold<class_LookAtModifier3D_property_primary_negative_damp_threshold>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`float<class_float>` | :ref:`primary_negative_limit_angle<class_LookAtModifier3D_property_primary_negative_limit_angle>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`float<class_float>` | :ref:`primary_positive_damp_threshold<class_LookAtModifier3D_property_primary_positive_damp_threshold>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`float<class_float>` | :ref:`primary_positive_limit_angle<class_LookAtModifier3D_property_primary_positive_limit_angle>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`Axis<enum_Vector3_Axis>` | :ref:`primary_rotation_axis<class_LookAtModifier3D_property_primary_rotation_axis>` | ``1`` |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`float<class_float>` | :ref:`secondary_damp_threshold<class_LookAtModifier3D_property_secondary_damp_threshold>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`float<class_float>` | :ref:`secondary_limit_angle<class_LookAtModifier3D_property_secondary_limit_angle>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`float<class_float>` | :ref:`secondary_negative_damp_threshold<class_LookAtModifier3D_property_secondary_negative_damp_threshold>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`float<class_float>` | :ref:`secondary_negative_limit_angle<class_LookAtModifier3D_property_secondary_negative_limit_angle>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`float<class_float>` | :ref:`secondary_positive_damp_threshold<class_LookAtModifier3D_property_secondary_positive_damp_threshold>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`float<class_float>` | :ref:`secondary_positive_limit_angle<class_LookAtModifier3D_property_secondary_positive_limit_angle>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`bool<class_bool>` | :ref:`symmetry_limitation<class_LookAtModifier3D_property_symmetry_limitation>` | |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`NodePath<class_NodePath>` | :ref:`target_node<class_LookAtModifier3D_property_target_node>` | ``NodePath("")`` |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`TransitionType<enum_Tween_TransitionType>` | :ref:`transition_type<class_LookAtModifier3D_property_transition_type>` | ``0`` |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`bool<class_bool>` | :ref:`use_angle_limitation<class_LookAtModifier3D_property_use_angle_limitation>` | ``false`` |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- | :ref:`bool<class_bool>` | :ref:`use_secondary_rotation<class_LookAtModifier3D_property_use_secondary_rotation>` | ``true`` |
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------------------+
- .. rst-class:: classref-reftable-group
- Methods
- -------
- .. table::
- :widths: auto
- +---------------------------+-------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_interpolation_remaining<class_LookAtModifier3D_method_get_interpolation_remaining>`\ (\ ) |const| |
- +---------------------------+-------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_interpolating<class_LookAtModifier3D_method_is_interpolating>`\ (\ ) |const| |
- +---------------------------+-------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_target_within_limitation<class_LookAtModifier3D_method_is_target_within_limitation>`\ (\ ) |const| |
- +---------------------------+-------------------------------------------------------------------------------------------------------------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Enumerations
- ------------
- .. _enum_LookAtModifier3D_OriginFrom:
- .. rst-class:: classref-enumeration
- enum **OriginFrom**: :ref:`๐<enum_LookAtModifier3D_OriginFrom>`
- .. _class_LookAtModifier3D_constant_ORIGIN_FROM_SELF:
- .. rst-class:: classref-enumeration-constant
- :ref:`OriginFrom<enum_LookAtModifier3D_OriginFrom>` **ORIGIN_FROM_SELF** = ``0``
- The bone rest position of the bone specified in :ref:`bone<class_LookAtModifier3D_property_bone>` is used as origin.
- .. _class_LookAtModifier3D_constant_ORIGIN_FROM_SPECIFIC_BONE:
- .. rst-class:: classref-enumeration-constant
- :ref:`OriginFrom<enum_LookAtModifier3D_OriginFrom>` **ORIGIN_FROM_SPECIFIC_BONE** = ``1``
- The bone global pose position of the bone specified in :ref:`origin_bone<class_LookAtModifier3D_property_origin_bone>` is used as origin.
- \ **Note:** It is recommended that you select only the parent bone unless you are familiar with the bone processing process. The specified bone pose at the time the **LookAtModifier3D** is processed is used as a reference. In other words, if you specify a child bone and the **LookAtModifier3D** causes the child bone to move, the rendered result and direction will not match.
- .. _class_LookAtModifier3D_constant_ORIGIN_FROM_EXTERNAL_NODE:
- .. rst-class:: classref-enumeration-constant
- :ref:`OriginFrom<enum_LookAtModifier3D_OriginFrom>` **ORIGIN_FROM_EXTERNAL_NODE** = ``2``
- The global position of the :ref:`Node3D<class_Node3D>` specified in :ref:`origin_external_node<class_LookAtModifier3D_property_origin_external_node>` is used as origin.
- \ **Note:** Same as :ref:`ORIGIN_FROM_SPECIFIC_BONE<class_LookAtModifier3D_constant_ORIGIN_FROM_SPECIFIC_BONE>`, when specifying a :ref:`BoneAttachment3D<class_BoneAttachment3D>` with a child bone assigned, the rendered result and direction will not match.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_LookAtModifier3D_property_bone:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **bone** = ``-1`` :ref:`๐<class_LookAtModifier3D_property_bone>`
- .. rst-class:: classref-property-setget
- - |void| **set_bone**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_bone**\ (\ )
- Index of the :ref:`bone_name<class_LookAtModifier3D_property_bone_name>` in the parent :ref:`Skeleton3D<class_Skeleton3D>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_bone_name:
- .. rst-class:: classref-property
- :ref:`String<class_String>` **bone_name** = ``""`` :ref:`๐<class_LookAtModifier3D_property_bone_name>`
- .. rst-class:: classref-property-setget
- - |void| **set_bone_name**\ (\ value\: :ref:`String<class_String>`\ )
- - :ref:`String<class_String>` **get_bone_name**\ (\ )
- The bone name of the :ref:`Skeleton3D<class_Skeleton3D>` that the modification will operate on.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_duration:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **duration** = ``0.0`` :ref:`๐<class_LookAtModifier3D_property_duration>`
- .. rst-class:: classref-property-setget
- - |void| **set_duration**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_duration**\ (\ )
- The duration of the time-based interpolation. Interpolation is triggered at the following cases:
- - When the target node is changed
- - When an axis is flipped due to angle limitation
- \ **Note:** The flipping occurs when the target is outside the angle limitation and the internally computed secondary rotation axis of the forward vector is flipped. Visually, it occurs when the target is outside the angle limitation and crosses the plane of the :ref:`forward_axis<class_LookAtModifier3D_property_forward_axis>` and :ref:`primary_rotation_axis<class_LookAtModifier3D_property_primary_rotation_axis>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_ease_type:
- .. rst-class:: classref-property
- :ref:`EaseType<enum_Tween_EaseType>` **ease_type** = ``0`` :ref:`๐<class_LookAtModifier3D_property_ease_type>`
- .. rst-class:: classref-property-setget
- - |void| **set_ease_type**\ (\ value\: :ref:`EaseType<enum_Tween_EaseType>`\ )
- - :ref:`EaseType<enum_Tween_EaseType>` **get_ease_type**\ (\ )
- The ease type of the time-based interpolation. See also :ref:`EaseType<enum_Tween_EaseType>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_forward_axis:
- .. rst-class:: classref-property
- :ref:`BoneAxis<enum_SkeletonModifier3D_BoneAxis>` **forward_axis** = ``4`` :ref:`๐<class_LookAtModifier3D_property_forward_axis>`
- .. rst-class:: classref-property-setget
- - |void| **set_forward_axis**\ (\ value\: :ref:`BoneAxis<enum_SkeletonModifier3D_BoneAxis>`\ )
- - :ref:`BoneAxis<enum_SkeletonModifier3D_BoneAxis>` **get_forward_axis**\ (\ )
- The forward axis of the bone. This :ref:`SkeletonModifier3D<class_SkeletonModifier3D>` modifies the bone so that this axis points toward the :ref:`target_node<class_LookAtModifier3D_property_target_node>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_origin_bone:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **origin_bone** :ref:`๐<class_LookAtModifier3D_property_origin_bone>`
- .. rst-class:: classref-property-setget
- - |void| **set_origin_bone**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_origin_bone**\ (\ )
- Index of the :ref:`origin_bone_name<class_LookAtModifier3D_property_origin_bone_name>` in the parent :ref:`Skeleton3D<class_Skeleton3D>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_origin_bone_name:
- .. rst-class:: classref-property
- :ref:`String<class_String>` **origin_bone_name** :ref:`๐<class_LookAtModifier3D_property_origin_bone_name>`
- .. rst-class:: classref-property-setget
- - |void| **set_origin_bone_name**\ (\ value\: :ref:`String<class_String>`\ )
- - :ref:`String<class_String>` **get_origin_bone_name**\ (\ )
- If :ref:`origin_from<class_LookAtModifier3D_property_origin_from>` is :ref:`ORIGIN_FROM_SPECIFIC_BONE<class_LookAtModifier3D_constant_ORIGIN_FROM_SPECIFIC_BONE>`, the bone global pose position specified for this is used as origin.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_origin_external_node:
- .. rst-class:: classref-property
- :ref:`NodePath<class_NodePath>` **origin_external_node** :ref:`๐<class_LookAtModifier3D_property_origin_external_node>`
- .. rst-class:: classref-property-setget
- - |void| **set_origin_external_node**\ (\ value\: :ref:`NodePath<class_NodePath>`\ )
- - :ref:`NodePath<class_NodePath>` **get_origin_external_node**\ (\ )
- If :ref:`origin_from<class_LookAtModifier3D_property_origin_from>` is :ref:`ORIGIN_FROM_EXTERNAL_NODE<class_LookAtModifier3D_constant_ORIGIN_FROM_EXTERNAL_NODE>`, the global position of the :ref:`Node3D<class_Node3D>` specified for this is used as origin.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_origin_from:
- .. rst-class:: classref-property
- :ref:`OriginFrom<enum_LookAtModifier3D_OriginFrom>` **origin_from** = ``0`` :ref:`๐<class_LookAtModifier3D_property_origin_from>`
- .. rst-class:: classref-property-setget
- - |void| **set_origin_from**\ (\ value\: :ref:`OriginFrom<enum_LookAtModifier3D_OriginFrom>`\ )
- - :ref:`OriginFrom<enum_LookAtModifier3D_OriginFrom>` **get_origin_from**\ (\ )
- This value determines from what origin is retrieved for use in the calculation of the forward vector.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_origin_offset:
- .. rst-class:: classref-property
- :ref:`Vector3<class_Vector3>` **origin_offset** = ``Vector3(0, 0, 0)`` :ref:`๐<class_LookAtModifier3D_property_origin_offset>`
- .. rst-class:: classref-property-setget
- - |void| **set_origin_offset**\ (\ value\: :ref:`Vector3<class_Vector3>`\ )
- - :ref:`Vector3<class_Vector3>` **get_origin_offset**\ (\ )
- The offset of the bone pose origin. Matching the origins by offset is useful for cases where multiple bones must always face the same direction, such as the eyes.
- \ **Note:** This value indicates the local position of the object set in :ref:`origin_from<class_LookAtModifier3D_property_origin_from>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_origin_safe_margin:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **origin_safe_margin** = ``0.1`` :ref:`๐<class_LookAtModifier3D_property_origin_safe_margin>`
- .. rst-class:: classref-property-setget
- - |void| **set_origin_safe_margin**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_origin_safe_margin**\ (\ )
- If the target passes through too close to the origin than this value, time-based interpolation is used even if the target is within the angular limitations, to prevent the angular velocity from becoming too high.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_primary_damp_threshold:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **primary_damp_threshold** :ref:`๐<class_LookAtModifier3D_property_primary_damp_threshold>`
- .. rst-class:: classref-property-setget
- - |void| **set_primary_damp_threshold**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_primary_damp_threshold**\ (\ )
- The threshold to start damping for :ref:`primary_limit_angle<class_LookAtModifier3D_property_primary_limit_angle>`. It provides non-linear (b-spline) interpolation, let it feel more resistance the more it rotate to the edge limit. This is useful for simulating the limits of human motion.
- If ``1.0``, no damping is performed. If ``0.0``, damping is always performed.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_primary_limit_angle:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **primary_limit_angle** :ref:`๐<class_LookAtModifier3D_property_primary_limit_angle>`
- .. rst-class:: classref-property-setget
- - |void| **set_primary_limit_angle**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_primary_limit_angle**\ (\ )
- The limit angle of the primary rotation when :ref:`symmetry_limitation<class_LookAtModifier3D_property_symmetry_limitation>` is ``true``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_primary_negative_damp_threshold:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **primary_negative_damp_threshold** :ref:`๐<class_LookAtModifier3D_property_primary_negative_damp_threshold>`
- .. rst-class:: classref-property-setget
- - |void| **set_primary_negative_damp_threshold**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_primary_negative_damp_threshold**\ (\ )
- The threshold to start damping for :ref:`primary_negative_limit_angle<class_LookAtModifier3D_property_primary_negative_limit_angle>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_primary_negative_limit_angle:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **primary_negative_limit_angle** :ref:`๐<class_LookAtModifier3D_property_primary_negative_limit_angle>`
- .. rst-class:: classref-property-setget
- - |void| **set_primary_negative_limit_angle**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_primary_negative_limit_angle**\ (\ )
- The limit angle of negative side of the primary rotation when :ref:`symmetry_limitation<class_LookAtModifier3D_property_symmetry_limitation>` is ``false``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_primary_positive_damp_threshold:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **primary_positive_damp_threshold** :ref:`๐<class_LookAtModifier3D_property_primary_positive_damp_threshold>`
- .. rst-class:: classref-property-setget
- - |void| **set_primary_positive_damp_threshold**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_primary_positive_damp_threshold**\ (\ )
- The threshold to start damping for :ref:`primary_positive_limit_angle<class_LookAtModifier3D_property_primary_positive_limit_angle>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_primary_positive_limit_angle:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **primary_positive_limit_angle** :ref:`๐<class_LookAtModifier3D_property_primary_positive_limit_angle>`
- .. rst-class:: classref-property-setget
- - |void| **set_primary_positive_limit_angle**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_primary_positive_limit_angle**\ (\ )
- The limit angle of positive side of the primary rotation when :ref:`symmetry_limitation<class_LookAtModifier3D_property_symmetry_limitation>` is ``false``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_primary_rotation_axis:
- .. rst-class:: classref-property
- :ref:`Axis<enum_Vector3_Axis>` **primary_rotation_axis** = ``1`` :ref:`๐<class_LookAtModifier3D_property_primary_rotation_axis>`
- .. rst-class:: classref-property-setget
- - |void| **set_primary_rotation_axis**\ (\ value\: :ref:`Axis<enum_Vector3_Axis>`\ )
- - :ref:`Axis<enum_Vector3_Axis>` **get_primary_rotation_axis**\ (\ )
- The axis of the first rotation. This :ref:`SkeletonModifier3D<class_SkeletonModifier3D>` works by compositing the rotation by Euler angles to prevent to rotate the :ref:`forward_axis<class_LookAtModifier3D_property_forward_axis>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_secondary_damp_threshold:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **secondary_damp_threshold** :ref:`๐<class_LookAtModifier3D_property_secondary_damp_threshold>`
- .. rst-class:: classref-property-setget
- - |void| **set_secondary_damp_threshold**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_secondary_damp_threshold**\ (\ )
- The threshold to start damping for :ref:`secondary_limit_angle<class_LookAtModifier3D_property_secondary_limit_angle>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_secondary_limit_angle:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **secondary_limit_angle** :ref:`๐<class_LookAtModifier3D_property_secondary_limit_angle>`
- .. rst-class:: classref-property-setget
- - |void| **set_secondary_limit_angle**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_secondary_limit_angle**\ (\ )
- The limit angle of the secondary rotation when :ref:`symmetry_limitation<class_LookAtModifier3D_property_symmetry_limitation>` is ``true``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_secondary_negative_damp_threshold:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **secondary_negative_damp_threshold** :ref:`๐<class_LookAtModifier3D_property_secondary_negative_damp_threshold>`
- .. rst-class:: classref-property-setget
- - |void| **set_secondary_negative_damp_threshold**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_secondary_negative_damp_threshold**\ (\ )
- The threshold to start damping for :ref:`secondary_negative_limit_angle<class_LookAtModifier3D_property_secondary_negative_limit_angle>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_secondary_negative_limit_angle:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **secondary_negative_limit_angle** :ref:`๐<class_LookAtModifier3D_property_secondary_negative_limit_angle>`
- .. rst-class:: classref-property-setget
- - |void| **set_secondary_negative_limit_angle**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_secondary_negative_limit_angle**\ (\ )
- The limit angle of negative side of the secondary rotation when :ref:`symmetry_limitation<class_LookAtModifier3D_property_symmetry_limitation>` is ``false``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_secondary_positive_damp_threshold:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **secondary_positive_damp_threshold** :ref:`๐<class_LookAtModifier3D_property_secondary_positive_damp_threshold>`
- .. rst-class:: classref-property-setget
- - |void| **set_secondary_positive_damp_threshold**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_secondary_positive_damp_threshold**\ (\ )
- The threshold to start damping for :ref:`secondary_positive_limit_angle<class_LookAtModifier3D_property_secondary_positive_limit_angle>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_secondary_positive_limit_angle:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **secondary_positive_limit_angle** :ref:`๐<class_LookAtModifier3D_property_secondary_positive_limit_angle>`
- .. rst-class:: classref-property-setget
- - |void| **set_secondary_positive_limit_angle**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_secondary_positive_limit_angle**\ (\ )
- The limit angle of positive side of the secondary rotation when :ref:`symmetry_limitation<class_LookAtModifier3D_property_symmetry_limitation>` is ``false``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_symmetry_limitation:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **symmetry_limitation** :ref:`๐<class_LookAtModifier3D_property_symmetry_limitation>`
- .. rst-class:: classref-property-setget
- - |void| **set_symmetry_limitation**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **is_limitation_symmetry**\ (\ )
- If ``true``, the limitations are spread from the bone symmetrically.
- If ``false``, the limitation can be specified separately for each side of the bone rest.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_target_node:
- .. rst-class:: classref-property
- :ref:`NodePath<class_NodePath>` **target_node** = ``NodePath("")`` :ref:`๐<class_LookAtModifier3D_property_target_node>`
- .. rst-class:: classref-property-setget
- - |void| **set_target_node**\ (\ value\: :ref:`NodePath<class_NodePath>`\ )
- - :ref:`NodePath<class_NodePath>` **get_target_node**\ (\ )
- The :ref:`NodePath<class_NodePath>` to the node that is the target for the look at modification. This node is what the modification will rotate the bone to.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_transition_type:
- .. rst-class:: classref-property
- :ref:`TransitionType<enum_Tween_TransitionType>` **transition_type** = ``0`` :ref:`๐<class_LookAtModifier3D_property_transition_type>`
- .. rst-class:: classref-property-setget
- - |void| **set_transition_type**\ (\ value\: :ref:`TransitionType<enum_Tween_TransitionType>`\ )
- - :ref:`TransitionType<enum_Tween_TransitionType>` **get_transition_type**\ (\ )
- The transition type of the time-based interpolation. See also :ref:`TransitionType<enum_Tween_TransitionType>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_use_angle_limitation:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **use_angle_limitation** = ``false`` :ref:`๐<class_LookAtModifier3D_property_use_angle_limitation>`
- .. rst-class:: classref-property-setget
- - |void| **set_use_angle_limitation**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **is_using_angle_limitation**\ (\ )
- If ``true``, limits the degree of rotation. This helps prevent the character's neck from rotating 360 degrees.
- \ **Note:** As with :ref:`AnimationTree<class_AnimationTree>` blending, interpolation is provided that favors :ref:`Skeleton3D.get_bone_rest()<class_Skeleton3D_method_get_bone_rest>`. This means that interpolation does not select the shortest path in some cases.
- \ **Note:** Some :ref:`transition_type<class_LookAtModifier3D_property_transition_type>` may exceed the limitations (e.g. `Back`, `Elastic`, and `Spring`). If interpolation occurs while overshooting the limitations, the result might possibly not respect the bone rest.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_property_use_secondary_rotation:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **use_secondary_rotation** = ``true`` :ref:`๐<class_LookAtModifier3D_property_use_secondary_rotation>`
- .. rst-class:: classref-property-setget
- - |void| **set_use_secondary_rotation**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **is_using_secondary_rotation**\ (\ )
- If ``true``, provides rotation by two axes.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Method Descriptions
- -------------------
- .. _class_LookAtModifier3D_method_get_interpolation_remaining:
- .. rst-class:: classref-method
- :ref:`float<class_float>` **get_interpolation_remaining**\ (\ ) |const| :ref:`๐<class_LookAtModifier3D_method_get_interpolation_remaining>`
- Returns the remaining seconds of the time-based interpolation.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_method_is_interpolating:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_interpolating**\ (\ ) |const| :ref:`๐<class_LookAtModifier3D_method_is_interpolating>`
- Returns whether the time-based interpolation is running or not. If ``true``, it is equivalent to :ref:`get_interpolation_remaining()<class_LookAtModifier3D_method_get_interpolation_remaining>` being ``0``.
- This is useful to determine whether a **LookAtModifier3D** can be removed safely.
- .. rst-class:: classref-item-separator
- ----
- .. _class_LookAtModifier3D_method_is_target_within_limitation:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_target_within_limitation**\ (\ ) |const| :ref:`๐<class_LookAtModifier3D_method_is_target_within_limitation>`
- Returns whether the target is within the angle limitations. It is useful for unsetting the :ref:`target_node<class_LookAtModifier3D_property_target_node>` when the target is outside of the angle limitations.
- \ **Note:** The value is updated after :ref:`SkeletonModifier3D._process_modification()<class_SkeletonModifier3D_private_method__process_modification>`. To retrieve this value correctly, we recommend using the signal :ref:`SkeletonModifier3D.modification_processed<class_SkeletonModifier3D_signal_modification_processed>`.
- .. |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.)`
- .. |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.)`
|