Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
BoneConstraint3D
Hereda: SkeletonModifier3D < Node3D < Node < Object
Heredado por: AimModifier3D, ConvertTransformModifier3D, CopyTransformModifier3D
Un nodo que puede modificar el hueso de Skeleton3D asociando los dos huesos.
Descripción
Base class of SkeletonModifier3D that modifies the bone set in set_apply_bone() based on the transform of the bone retrieved by get_reference_bone().
Note: Most methods in this class take an index parameter. This parameter specifies which setting list entry to return if the IK has multiple entries (e.g. settings/<index>/amount).
Métodos
void |
|
get_amount(index: int) const |
|
get_apply_bone(index: int) const |
|
get_apply_bone_name(index: int) const |
|
get_reference_bone(index: int) const |
|
get_reference_bone_name(index: int) const |
|
get_reference_node(index: int) const |
|
get_reference_type(index: int) const |
|
get_setting_count() const |
|
void |
set_amount(index: int, amount: float) |
void |
set_apply_bone(index: int, bone: int) |
void |
set_apply_bone_name(index: int, bone_name: String) |
void |
set_reference_bone(index: int, bone: int) |
void |
set_reference_bone_name(index: int, bone_name: String) |
void |
set_reference_node(index: int, node: NodePath) |
void |
set_reference_type(index: int, type: ReferenceType) |
void |
set_setting_count(count: int) |
Enumeraciones
enum ReferenceType: 🔗
ReferenceType REFERENCE_TYPE_BONE = 0
El objetivo de referencia es un hueso. En este caso, el espacio del objetivo de referencia es el espacio local.
ReferenceType REFERENCE_TYPE_NODE = 1
El objetivo de referencia es un Node3D. En este caso, el espacio del objetivo de referencia es el espacio del modelo.
En otras palabras, las coordenadas del objetivo de referencia se tratan como si estuviera ubicado directamente debajo de Skeleton3D, que a su vez es padre de BoneConstraint3D.
Descripciones de Métodos
void clear_setting() 🔗
Borra todos los ajustes.
float get_amount(index: int) const 🔗
Returns the apply amount of the setting at index.
int get_apply_bone(index: int) const 🔗
Devuelve el hueso de aplicación del ajuste en index. Este hueso será modificado.
String get_apply_bone_name(index: int) const 🔗
Devuelve el nombre del hueso de aplicación del ajuste en index. Este hueso será modificado.
int get_reference_bone(index: int) const 🔗
Devuelve el hueso de referencia del ajuste en index.
Este hueso solo será referenciado y no modificado por este modificador.
String get_reference_bone_name(index: int) const 🔗
Devuelve el nombre del hueso de referencia del ajuste en index.
Este hueso solo será referenciado y no modificado por este modificador.
NodePath get_reference_node(index: int) const 🔗
Returns the reference node path of the setting at index.
This node will be only referenced and not modified by this modifier.
ReferenceType get_reference_type(index: int) const 🔗
Devuelve el tipo de objetivo de referencia de la configuración en index. Véase también ReferenceType. Este hueso solo será referenciado y no modificado por este modificador.
int get_setting_count() const 🔗
Devuelve el número de ajustes en el modificador.
void set_amount(index: int, amount: float) 🔗
Establece la cantidad de aplicación del ajuste en index a amount.
void set_apply_bone(index: int, bone: int) 🔗
Establece el hueso de aplicación del ajuste en index a bone. Este hueso será modificado.
void set_apply_bone_name(index: int, bone_name: String) 🔗
Establece el hueso de aplicación del ajuste en index a bone_name. Este hueso será modificado.
void set_reference_bone(index: int, bone: int) 🔗
Establece el hueso de referencia del ajuste en index a bone.
Este hueso solo será referenciado y no modificado por este modificador.
void set_reference_bone_name(index: int, bone_name: String) 🔗
Establece el hueso de referencia del ajuste en index a bone_name.
Este hueso solo será referenciado y no modificado por este modificador.
void set_reference_node(index: int, node: NodePath) 🔗
Sets the reference node path of the setting at index to node.
This node will be only referenced and not modified by this modifier.
void set_reference_type(index: int, type: ReferenceType) 🔗
Establece el objetivo (target) de referencia del ajuste en index a type. Véase también ReferenceType.
void set_setting_count(count: int) 🔗
Establece el número de ajustes en el modificador.