Skip to main content

BoneConstraint3D

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

voidclear_setting\ (\ )
floatget_amount\ (\ index: int\ ) const
intget_apply_bone\ (\ index: int\ ) const
Stringget_apply_bone_name\ (\ index: int\ ) const
intget_reference_bone\ (\ index: int\ ) const
Stringget_reference_bone_name\ (\ index: int\ ) const
intget_setting_count\ (\ ) const
voidset_amount\ (\ index: int, amount: float\ )
voidset_apply_bone\ (\ index: int, bone: int\ )
voidset_apply_bone_name\ (\ index: int, bone_name: String\ )
voidset_reference_bone\ (\ index: int, bone: int\ )
voidset_reference_bone_name\ (\ index: int, bone_name: String\ )
voidset_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.