coloring box2d body in LibGDX

Posted by ved on Game Development See other posts from Game Development or by ved
Published on 2013-10-17T07:06:47Z Indexed on 2013/10/17 16:26 UTC
Read the original article Hit count: 450

Filed under:
|
|
|

I want to color polygon of box2d in LibGDX. Found below useful class for that.

http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/graphics/glutils/ShapeRenderer.html

But, it is not coloring the body instead making colored shapes. I want colored bodies having all the property like gravity, restitution etc. In brief, I want to make colored ball and surface.And i don't want to attach sprite on bodies. Want just fill color in bodies.

Need some guidance????

© Game Development or respective owner

Related posts about box2d

Related posts about libgdx