BoneConstraint3D
Inherits: SkeletonModifier3D < Entity3D < Entity < Object
Inherited by: AimModifier3D, ConvertTransformModifier3D, CopyTransformModifier3D
Description
Section titled “Description”A node that may modify Skeleton3D’s bone with associating the two bones.
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).
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| void | clear_setting() |
| float | get_amount(index: int) const |
| int | get_apply_bone(index: int) const |
| String | get_apply_bone_name(index: int) const |
| int | get_reference_bone(index: int) const |
| String | get_reference_bone_name(index: int) const |
| EntityPath | get_reference_node(index: int) const |
| ReferenceType | get_reference_type(index: int) const |
| int | 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: EntityPath) |
| void | set_reference_type(index: int, type: ReferenceType) |
| void | set_setting_count(count: int) |
Enumerations
Section titled “Enumerations”ReferenceType
enum ReferenceType
REFERENCE_TYPE_BONE = 0
The reference target is a bone. In this case, the reference target space is local space.
REFERENCE_TYPE_NODE = 1
The reference target is a Entity3D. In this case, the reference target space is model space.
In other words, the reference target’s coordinates are treated as if it was placed directly under the Skeleton3D parent of the BoneConstraint3D.
Method descriptions
Section titled “Method descriptions”clear_setting
void clear_setting()
Clear all settings.
get_amount
float get_amount(index: int) const
Returns the apply amount of the setting at index.
get_apply_bone
int get_apply_bone(index: int) const
Returns the apply bone of the setting at index. This bone will be modified.
get_apply_bone_name
String get_apply_bone_name(index: int) const
Returns the apply bone name of the setting at index. This bone will be modified.
get_reference_bone
int get_reference_bone(index: int) const
Returns the reference bone of the setting at index.
This bone will be only referenced and not modified by this modifier.
get_reference_bone_name
String get_reference_bone_name(index: int) const
Returns the reference bone name of the setting at index.
This bone will be only referenced and not modified by this modifier.
get_reference_node
EntityPath get_reference_node(index: int) const
Returns the reference node path of the setting at index.
This node will only be referenced and not modified by this modifier.
get_reference_type
ReferenceType get_reference_type(index: int) const
Returns the reference target type of the setting at index. See also ReferenceType.
get_setting_count
int get_setting_count() const
Returns the number of settings in the modifier.
set_amount
void set_amount(index: int, amount: float)
Sets the apply amount of the setting at index to amount.
set_apply_bone
void set_apply_bone(index: int, bone: int)
Sets the apply bone of the setting at index to bone. This bone will be modified.
set_apply_bone_name
void set_apply_bone_name(index: int, bone_name: String)
Sets the apply bone of the setting at index to bone_name. This bone will be modified.
set_reference_bone
void set_reference_bone(index: int, bone: int)
Sets the reference bone of the setting at index to bone.
This bone will only be referenced and not modified by this modifier.
set_reference_bone_name
void set_reference_bone_name(index: int, bone_name: String)
Sets the reference bone of the setting at index to bone_name.
This bone will only be referenced and not modified by this modifier.
set_reference_node
void set_reference_node(index: int, node: EntityPath)
Sets the reference node path of the setting at index to node.
This node will only be referenced and not modified by this modifier.
set_reference_type
void set_reference_type(index: int, type: ReferenceType)
Sets the reference target type of the setting at index to type. See also ReferenceType.
set_setting_count
void set_setting_count(count: int)
Sets the number of settings in the modifier.
