Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

SkeletonModification2D

Inherits: Resource < RefCounted < Object

Inherited By: SkeletonModification2DCCDIK, SkeletonModification2DFABRIK, SkeletonModification2DJiggle, SkeletonModification2DLookAt, SkeletonModification2DPhysicalBones, SkeletonModification2DStackHolder, SkeletonModification2DTwoBoneIK

Base class for resources that operate on Bone2Ds in a Skeleton2D.

Description

This resource provides an interface that can be expanded so code that operates on Bone2D nodes in a Skeleton2D can be mixed and matched together to create complex interactions.

This is used to provide Godot with a flexible and powerful Inverse Kinematics solution that can be adapted for many different uses.

Properties

bool

enabled

true

int

execution_mode

0

Methods

void

_draw_editor_gizmo ( ) virtual

void

_execute ( float delta ) virtual

void

_setup_modification ( SkeletonModificationStack2D modification_stack ) virtual

float

clamp_angle ( float angle, float min, float max, bool invert )

bool

get_editor_draw_gizmo ( ) const

bool

get_is_setup ( ) const

SkeletonModificationStack2D

get_modification_stack ( )

void

set_editor_draw_gizmo ( bool draw_gizmo )

void

set_is_setup ( bool is_setup )


Property Descriptions