Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

LimitAngularVelocityModifier3D

Eredita: SkeletonModifier3D < Node3D < Node < Object

Limit bone rotation angular velocity.

Descrizione

Questo modificatore limita la velocità angolare di rotazione delle ossa confrontando le pose tra il frame precedente e quello attuale.

È possibile aggiungere catene di ossa specificando le ossa radice e finale, poi aggiungere le ossa intermedie a un elenco. Il modificatore elabora tale elenco oppure le ossa escludendo quelle presenti nell'elenco, a seconda dell'opzione exclude.

Nota: La maggior parte dei metodi di questa classe accetta un parametro index. Questo parametro specifica quale voce nell'elenco delle impostazioni restituire, se l'IK ha più voci (ad esempio, settings/<index>/target_node).

Proprietà

int

chain_count

0

bool

exclude

false

int

joint_count

0

float

max_angular_velocity

6.2831855

Metodi

void

clear_chains()

int

get_end_bone(index: int) const

String

get_end_bone_name(index: int) const

int

get_root_bone(index: int) const

String

get_root_bone_name(index: int) const

void

reset()

void

set_end_bone(index: int, bone: int)

void

set_end_bone_name(index: int, bone_name: String)

void

set_root_bone(index: int, bone: int)

void

set_root_bone_name(index: int, bone_name: String)


Descrizioni delle proprietà

int chain_count = 0 🔗

  • void set_chain_count(value: int)

  • int get_chain_count()

The number of chains.


bool exclude = false 🔗

  • void set_exclude(value: bool)

  • bool is_exclude()

If true, the modifier processes bones not included in the bone list.

If false, the bones processed by the modifier are equal to the bone list.


int joint_count = 0 🔗

The number of joints in the list which created by chains dynamically.


float max_angular_velocity = 6.2831855 🔗

  • void set_max_angular_velocity(value: float)

  • float get_max_angular_velocity()

The maximum angular velocity per second.


Descrizioni dei metodi

void clear_chains() 🔗

Clear all chains.


int get_end_bone(index: int) const 🔗

Restituisce l'indice dell'osso finale della catena d'ossa.


String get_end_bone_name(index: int) const 🔗

Restituisce il nome dell'osso finale della coda d'ossa.


int get_root_bone(index: int) const 🔗

Restituisce l'indice dell'osso radice della catena d'ossa.


String get_root_bone_name(index: int) const 🔗

Restituisce il nome dell'osso radice della catena d'ossa.


void reset() 🔗

Sets the reference pose for angle comparison to the current pose with the influence of constraints removed. This function is automatically triggered when joints change or upon activation.


void set_end_bone(index: int, bone: int) 🔗

Imposta l'indice dell'osso finale della catena d'ossa.


void set_end_bone_name(index: int, bone_name: String) 🔗

Sets the end bone name of the bone chain.

Note: End bone must be the root bone or a child of the root bone.


void set_root_bone(index: int, bone: int) 🔗

Imposta l'indice dell'osso radice della catena d'ossa.


void set_root_bone_name(index: int, bone_name: String) 🔗

Imposta il nome dell'osso radice della catena d'ossa.