ConvertTransformModifier3D

Hérite de : BoneConstraint3D < SkeletonModifier3D < Node3D < Node < Object

A SkeletonModifier3D that apply transform to the bone which converted from reference.

Description

Apply the copied transform of the bone set by BoneConstraint3D.set_reference_bone() to the bone set by BoneConstraint3D.set_apply_bone() about the specific axis with remapping it with some options.

There are 4 ways to apply the transform, depending on the combination of set_relative() and set_additive().

Relative + Additive:

  • Extract reference pose relative to the rest and add it to the apply bone's pose.

Relative + Not Additive:

  • Extract reference pose relative to the rest and add it to the apply bone's rest.

Not Relative + Additive:

  • Extract reference pose absolutely and add it to the apply bone's pose.

Not Relative + Not Additive:

  • Extract reference pose absolutely and the apply bone's pose is replaced with it.

Propriétés

int

setting_count

0

Méthodes

Axis

get_apply_axis(index: int) const

float

get_apply_range_max(index: int) const

float

get_apply_range_min(index: int) const

TransformMode

get_apply_transform_mode(index: int) const

Axis

get_reference_axis(index: int) const

float

get_reference_range_max(index: int) const

float

get_reference_range_min(index: int) const

TransformMode

get_reference_transform_mode(index: int) const

bool

is_additive(index: int) const

bool

is_relative(index: int) const

void

set_additive(index: int, enabled: bool)

void

set_apply_axis(index: int, axis: Axis)

void

set_apply_range_max(index: int, range_max: float)

void

set_apply_range_min(index: int, range_min: float)

void

set_apply_transform_mode(index: int, transform_mode: TransformMode)

void

set_reference_axis(index: int, axis: Axis)

void

set_reference_range_max(index: int, range_max: float)

void

set_reference_range_min(index: int, range_min: float)

void

set_reference_transform_mode(index: int, transform_mode: TransformMode)

void

set_relative(index: int, enabled: bool)


Énumérations

enum TransformMode: 🔗

TransformMode TRANSFORM_MODE_POSITION = 0

Convertir avec la position. Transférer la différence.

TransformMode TRANSFORM_MODE_ROTATION = 1

Convertir avec la rotation. L'angle est le roulis de l'axe spécifié.

TransformMode TRANSFORM_MODE_SCALE = 2

Convertir avec l'échelle. Transférer le facteur, pas la différence.


Descriptions des propriétés

int setting_count = 0 🔗

  • void set_setting_count(value: int)

  • int get_setting_count()

Le nombre de réglages dans le modificateur.


Descriptions des méthodes

Axis get_apply_axis(index: int) const 🔗

Returns the axis of the remapping destination transform.


float get_apply_range_max(index: int) const 🔗

Returns the maximum value of the remapping destination range.


float get_apply_range_min(index: int) const 🔗

Returns the minimum value of the remapping destination range.


TransformMode get_apply_transform_mode(index: int) const 🔗

Returns the operation of the remapping destination transform.


Axis get_reference_axis(index: int) const 🔗

Returns the axis of the remapping source transform.


float get_reference_range_max(index: int) const 🔗

Returns the maximum value of the remapping source range.


float get_reference_range_min(index: int) const 🔗

Returns the minimum value of the remapping source range.


TransformMode get_reference_transform_mode(index: int) const 🔗

Returns the operation of the remapping source transform.


bool is_additive(index: int) const 🔗

Renvoie true si l'option Additive est activée dans le paramètre à l'index index.


bool is_relative(index: int) const 🔗

Renvoie true si l'option Relative est activée dans le paramètre à l'index index.


void set_additive(index: int, enabled: bool) 🔗

Définit l'option Additive dans le paramètre à l'index index à la valeur enabled. Cela affecte principalement le processus d'application de la transformation à l'os de BoneConstraint3D.set_apply_bone().

Si enabled est défini à true, la transformation traitée est ajoutée à la pose de l'os appliqué actuel.

Si enabled est défini à false, la pose de l'os appliqué actuel est remplacée par la transformation traitée. Toutefois, si set_relative() est défini à true, la transformation est relative au repos.


void set_apply_axis(index: int, axis: Axis) 🔗

Sets the axis of the remapping destination transform.


void set_apply_range_max(index: int, range_max: float) 🔗

Sets the maximum value of the remapping destination range.


void set_apply_range_min(index: int, range_min: float) 🔗

Sets the minimum value of the remapping destination range.


void set_apply_transform_mode(index: int, transform_mode: TransformMode) 🔗

Sets the operation of the remapping destination transform.


void set_reference_axis(index: int, axis: Axis) 🔗

Définit l'axe de la transformation source de la ré-association.


void set_reference_range_max(index: int, range_max: float) 🔗

Définit la valeur maximale de l'intervalle source de la ré-association.


void set_reference_range_min(index: int, range_min: float) 🔗

Définit la valeur minimale de l'intervalle source de la ré-association.


void set_reference_transform_mode(index: int, transform_mode: TransformMode) 🔗

Définit l'opération de la transformation source de la ré-association.


void set_relative(index: int, enabled: bool) 🔗

Sets relative option in the setting at index to enabled.

If sets enabled to true, the extracted and applying transform is relative to the rest.

If sets enabled to false, the extracted transform is absolute.