Hi
I have another problem with BB. It's supposed to look like in spine: Image removed due to the lack of support for HTTPS. | Show Anyway
But after loading into libgdx its look like this: Image removed due to the lack of support for HTTPS. | Show Anyway
The polygon is not in place and it's not even look like polygon from SPINE.
Here is code what I'm using:
for (Slot slot : skeleton.getSlots()) {
if (slot.getAttachment() != null){
String s = slot.getAttachment().getName();
if ( s .equals("bbnoga")){
testB = (BoundingBoxAttachment)slot.getAttachment();
testB.getVertices();
boxPoly = new PolygonShape();
boxPoly.set(testB.getVertices());
BodyDef boxBodyDef = new BodyDef();
boxBodyDef.type = BodyType.StaticBody;
test = swiat.createBody(boxBodyDef);
test.createFixture(boxPoly, 0);
boxPoly.dispose();
}
}
}
It's very simple with no position of BodyDef. I have tryied to set it up but also with no luck.