user1001506
user1001506

Reputation:

Libgdx and Box2D Draw a custom shape

I have the following shape: http://s16.postimg.org/sfhb5wgdx/slime.png and I want to draw it in LibGDx just like that because am using Box2d wand will be used in collisions. I have heard I can used a mesh to create this but there isn't much documentation about drawing anything from an image. Do I seriously have to define all the points myself? Is there a better way to extract a shape from in image?

Upvotes: 0

Views: 2494

Answers (1)

Vikalp Jain
Vikalp Jain

Reputation: 1419

Use Physics body editor https://code.google.com/p/box2d-editor/ this will solve your problem

Upvotes: 1

Related Questions