spBone

extern (C)
struct spBone {
const(spBoneData)* data;
const(spSkeleton)* skeleton;
spBone* parent;
int childrenCount;
const(spBone)** children;
float x;
float y;
float rotation;
float scaleX;
float scaleY;
float shearX;
float shearY;
float ax;
float ay;
float arotation;
float ascaleX;
float ascaleY;
float ashearX;
float ashearY;
int appliedValid;
float a;
float b;
float worldX;
float c;
float d;
float worldY;
int sorted;
}

Members

Functions

worldToLocal
void worldToLocal(float worldX, float worldY, out float localX, out float localY)

Converts a skeleton-space position into a bone local position

Meta