Skip to content

BoneSpaceAdjuster3D

Inherits: SkeletonModifier3D < Entity3D < Entity < Object

Inputs a scale and converts it to the position of a child bone.

Inputs a scale and converts it to the position of a child bone. Intended for use in combination with Skeleton3D.set_bone_skin_scale().

This modifier repositions child bones to follow the skin transformation by Skeleton3D.set_bone_skin_scale() in cases when you want to adjust bone length using Skeleton3D.set_bone_skin_scale() or when the bone has multiple child bones.

Type Name Default
int setting_size
bool use_bone_skin_scale_for_all_bones true
Returns Method
void clear_setting()
int get_bone(index: int) const
StringName get_bone_name(index: int) const
Vector3 get_bone_scale(index: int) const
bool is_using_bone_skin_scale(index: int) const
void set_bone(index: int, bone: int)
void set_bone_name(index: int, bone_name: StringName)
void set_bone_scale(index: int, scale: Vector3)
void set_use_bone_skin_scale(index: int, enabled: bool)

setting_size

int setting_size

The number of settings in the modifier.

use_bone_skin_scale_for_all_bones

bool use_bone_skin_scale_for_all_bones = true

If true, this modifier processes all bones for which Skeleton3D.get_bone_skin_scale() is not Vector3(1, 1, 1).

If false, this modifier allows you to configure whether to process bone skin scaling individually in the settings.

clear_setting

void clear_setting()

Clears all settings.

get_bone

int get_bone(index: int) const

Returns the scaled bone of the setting at index.

get_bone_name

StringName get_bone_name(index: int) const

Returns the scaled bone name of the setting at index.

get_bone_scale

Vector3 get_bone_scale(index: int) const

Returns the scale of the setting at index.

is_using_bone_skin_scale

bool is_using_bone_skin_scale(index: int) const

Returns whether to use the skin_scale property of a Skeleton3D’s bone of the setting at index.

set_bone

void set_bone(index: int, bone: int)

Sets the scaled bone of the setting at index.

set_bone_name

void set_bone_name(index: int, bone_name: StringName)

Sets the scaled bone name of the setting at index.

set_bone_scale

void set_bone_scale(index: int, scale: Vector3)

When is_using_bone_skin_scale() returns false, sets the scale of the setting at index.

Note: The scale value is recommended to be non-zero.

set_use_bone_skin_scale

void set_use_bone_skin_scale(index: int, enabled: bool)

Sets whether to use the skin_scale property of a Skeleton3D’s bone of the setting at index.