C# Class Spine.Bone

Inheritance: IUpdatable
显示文件 Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Public Properties

Property Type Description
yDown bool

Public Methods

Method Description
Bone ( BoneData data, Skeleton skeleton, Bone parent ) : System
LocalToWorld ( float localX, float localY, float &worldX, float &worldY ) : void
RotateWorld ( float degrees ) : void
SetToSetupPose ( ) : void
ToString ( ) : String
Update ( ) : void

Same as UpdateWorldTransform. This method exists for Bone to implement Spine.IUpdatable.

UpdateWorldTransform ( ) : void

Computes the world transform using the parent bone and this bone's local transform.

UpdateWorldTransform ( float x, float y, float rotation, float scaleX, float scaleY, float shearX, float shearY ) : void

Computes the world transform using the parent bone and the specified local transform.

WorldToLocal ( float worldX, float worldY, float &localX, float &localY ) : void

Private Methods

Method Description
UpdateAppliedTransform ( ) : void

Computes the individual applied transform values from the world transform. This can be useful to perform processing using the applied transform after the world transform has been modified directly (eg, by a constraint).. Some information is ambiguous in the world transform, such as -1,-1 scale versus 180 rotation.

Method Details

Bone() public method

public Bone ( BoneData data, Skeleton skeleton, Bone parent ) : System
data BoneData
skeleton Skeleton
parent Bone May be null.
return System

LocalToWorld() public method

public LocalToWorld ( float localX, float localY, float &worldX, float &worldY ) : void
localX float
localY float
worldX float
worldY float
return void

RotateWorld() public method

public RotateWorld ( float degrees ) : void
degrees float
return void

SetToSetupPose() public method

public SetToSetupPose ( ) : void
return void

ToString() public method

public ToString ( ) : String
return String

Update() public method

Same as UpdateWorldTransform. This method exists for Bone to implement Spine.IUpdatable.
public Update ( ) : void
return void

UpdateWorldTransform() public method

Computes the world transform using the parent bone and this bone's local transform.
public UpdateWorldTransform ( ) : void
return void

UpdateWorldTransform() public method

Computes the world transform using the parent bone and the specified local transform.
public UpdateWorldTransform ( float x, float y, float rotation, float scaleX, float scaleY, float shearX, float shearY ) : void
x float
y float
rotation float
scaleX float
scaleY float
shearX float
shearY float
return void

WorldToLocal() public method

public WorldToLocal ( float worldX, float worldY, float &localX, float &localY ) : void
worldX float
worldY float
localX float
localY float
return void

Property Details

yDown static_oe public_oe property

static public bool yDown
return bool