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.

SplineIK3D

Eredita: ChainIK3D < IKModifier3D < SkeletonModifier3D < Node3D < Node < Object

A SkeletonModifier3D for aligning bones along a Path3D.

Descrizione

Un SkeletonModifier3D per allineare le ossa lungo un Path3D. La fluidità dell'allineamento dipende da Curve3D.bake_interval.

Se si desidera che il Path3D si attacchi a un osso specifico, si consiglia di posizionare un ModifierBoneTarget3D prima dello SplineIK3D nell'elenco di SkeletonModifier3D (i figli dello Skeleton3D), e poi inserire un Path3D come figlio del ModifierBoneTarget3D.

La torsione delle ossa è determinata in base a Curve3D.get_point_tilt().

Se l'articolazione dell'osso radice e il punto di partenza della Curve3D sono separati, si presume che ci sia un segmento lineare tra di essi. Ciò significa che il vettore che punta verso il punto di partenza della Curve3D ha la precedenza sul punto di intersezione più breve lungo la Curve3D.

Se l'articolazione dell'osso finale supera la lunghezza del percorso, è piegata il più vicino possibile al punto finale della Curve3D.

Nota: Tutti i metodi di questa classe accettano un parametro index. Questo parametro specifica quale voce nell'elenco delle impostazioni restituire, se l'IK ha più voci (ad esempio, settings/<index>/root_bone_name).

Proprietà

int

setting_count

0

Metodi

NodePath

get_path_3d(index: int) const

int

get_tilt_fade_in(index: int) const

int

get_tilt_fade_out(index: int) const

bool

is_tilt_enabled(index: int) const

void

set_path_3d(index: int, path_3d: NodePath)

void

set_tilt_enabled(index: int, enabled: bool)

void

set_tilt_fade_in(index: int, size: int)

void

set_tilt_fade_out(index: int, size: int)


Descrizioni delle proprietà

int setting_count = 0 🔗

  • void set_setting_count(value: int)

  • int get_setting_count()

Il numero di impostazioni.


Descrizioni dei metodi

NodePath get_path_3d(index: int) const 🔗

Returns the node path of the Path3D which is describing the path.


int get_tilt_fade_in(index: int) const 🔗

Returns the tilt interpolation method used between the root bone and the start point of the Curve3D when they are apart. See also set_tilt_fade_in().


int get_tilt_fade_out(index: int) const 🔗

Returns the tilt interpolation method used between the end bone and the end point of the Curve3D when they are apart. See also set_tilt_fade_out().


bool is_tilt_enabled(index: int) const 🔗

Restituisce se la proprietà di inclinazione del Curve3D influisce sulla torsione dell'osso.


void set_path_3d(index: int, path_3d: NodePath) 🔗

Sets the node path of the Path3D which is describing the path.


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

Imposta se la proprietà di inclinazione del Curve3D influisce sulla torsione dell'osso.


void set_tilt_fade_in(index: int, size: int) 🔗

If size is greater than 0, the tilt is interpolated between size start bones from the start point of the Curve3D when they are apart.

If size is equal 0, the tilts between the root bone head and the start point of the Curve3D are unified with a tilt of the start point of the Curve3D.

If size is less than 0, the tilts between the root bone and the start point of the Curve3D are 0.0.


void set_tilt_fade_out(index: int, size: int) 🔗

If size is greater than 0, the tilt is interpolated between size end bones from the end point of the Curve3D when they are apart.

If size is equal 0, the tilts between the end bone tail and the end point of the Curve3D are unified with a tilt of the end point of the Curve3D.

If size is less than 0, the tilts between the end bone and the end point of the Curve3D are 0.0.