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.
Checking the stable version of the documentation...
SkeletonModificationStack2D¶
Inherits: Resource < RefCounted < Object
A resource that holds a stack of SkeletonModification2Ds.
Description¶
This resource is used by the Skeleton and holds a stack of SkeletonModification2Ds.
This controls the order of the modifications and how they are applied. Modification order is especially important for full-body IK setups, as you need to execute the modifications in the correct order to get the desired results. For example, you want to execute a modification on the spine before the arms on a humanoid skeleton.
This resource also controls how strongly all of the modifications are applied to the Skeleton2D.
Properties¶
|
||
|
||
|
Methods¶
void |
add_modification ( SkeletonModification2D modification ) |
void |
delete_modification ( int mod_idx ) |
void |
enable_all_modifications ( bool enabled ) |
void |
|
get_is_setup ( ) const |
|
get_modification ( int mod_idx ) const |
|
get_skeleton ( ) const |
|
void |
set_modification ( int mod_idx, SkeletonModification2D modification ) |
void |
setup ( ) |
Property Descriptions¶
bool enabled = false
If true
, the modification's in the stack will be called. This is handled automatically through the Skeleton2D node.
int modification_count = 0
The number of modifications in the stack.
float strength = 1.0
The interpolation strength of the modifications in stack. A value of 0
will make it where the modifications are not applied, a strength of 0.5
will be half applied, and a strength of 1
will allow the modifications to be fully applied and override the Skeleton2D Bone2D poses.
Method Descriptions¶
void add_modification ( SkeletonModification2D modificatio