Hello, i have been trying to turn this examples skeleton into a ragdoll but have had no luck.
This Link :https://github.com/EsotericSoftware/spine-runtimes/blob/master/spine-libgdx/test/com/esotericsoftware/spine/Box2DExample.java
I have been trying something like this, but the bone does not follow the body in the right position
Vector2 Pos = body.getPosition().sub(origin);
skeleton.findBone("head").setPosition(Pos.x, Pos.y);
skeleton.findBone("head").setRotation(body.getAngle() * MathUtils.radiansToDegrees);
I know that this won't move the whole skeleton.
How do i get the bones to follow box2D bodies?