BoneConstraint3D๏Free Courses
Inherits: SkeletonModifier3D < Node3D < Node < Object
Inherited By: AimModifier3D, ConvertTransformModifier3D, CopyTransformModifier3D
A node that may modify Skeleton3D's bone with associating the two bones.
Description๏
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().
Methods๏
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_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_setting_count(count: int) |
Method Descriptions๏
void clear_setting() ๐
Clear all settings.
float get_amount(index: int) const ๐
Returns the apply amount of the setting at index
.
int get_apply_bone(index: int) const ๐
Returns the apply bone of the setting at index
. This bone will be modified.
String get_apply_bone_name(index: int) const ๐
Returns the apply bone name of the setting at index
. This bone will be modified.
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.
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.
int get_setting_count() const ๐
Returns the number of settings in the modifier.
void set_amount(index: int, amount: float) ๐
Sets the apply amount of the setting at index
to amount
.
void set_apply_bone(index: int, bone: int) ๐
Sets the apply bone of the setting at index
to bone
. This bone will be modified.
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.
void set_reference_bone(index: int, bone: int) ๐
Sets the reference bone of the setting at index
to bone
.
This bone will be only referenced and not modified by this modifier.
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 be only referenced and not modified by this modifier.
void set_setting_count(count: int) ๐
Sets the number of settings in the modifier.