C# Class Spine.IkConstraint

Inheritance: IConstraint
Mostra file Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Public Methods

Method Description
Apply ( ) : void
Apply ( Bone parent, Bone child, float targetX, float targetY, int bendDir, float alpha ) : void

Adjusts the parent and child bone rotations so the tip of the child is as close to the target position as possible. The target is specified in the world coordinate system.

Apply ( Bone bone, float targetX, float targetY, float alpha ) : void

Adjusts the bone rotation so the tip is as close to the target position as possible. The target is specified in the world coordinate system.

IkConstraint ( IkConstraintData data, Skeleton skeleton ) : System
ToString ( ) : String
Update ( ) : void

Method Details

Apply() public method

public Apply ( ) : void
return void

Apply() static public method

Adjusts the parent and child bone rotations so the tip of the child is as close to the target position as possible. The target is specified in the world coordinate system.
static public Apply ( Bone parent, Bone child, float targetX, float targetY, int bendDir, float alpha ) : void
parent Bone
child Bone A direct descendant of the parent bone.
targetX float
targetY float
bendDir int
alpha float
return void

Apply() static public method

Adjusts the bone rotation so the tip is as close to the target position as possible. The target is specified in the world coordinate system.
static public Apply ( Bone bone, float targetX, float targetY, float alpha ) : void
bone Bone
targetX float
targetY float
alpha float
return void

IkConstraint() public method

public IkConstraint ( IkConstraintData data, Skeleton skeleton ) : System
data IkConstraintData
skeleton Skeleton
return System

ToString() public method

public ToString ( ) : String
return String

Update() public method

public Update ( ) : void
return void