Hi guys!
I’m working at a 2D game and I want to implement skeletal animation to it.
Can you give me a structure of that please?
My bone classes look like that:
class Bone {
int x,y;
double rotation;
}
class Node {
Node[] children;
Bone[] bones;
}
class Animation {
Node node; // the root
//[...]
public void animate() {
//[THAT'S WHERE I GOT STUCK]
}
}
P.S.: Sorry for my english