Hello,
I'd like to thank you. After some digging and some experience i finally made it work ! In case someone need a working example, here it is : http://pastebin.com/HFynR5wx
Thanks !
Search found 3 matches
- Wed Aug 12, 2015 10:23 am
- Forum: Box2D tutorial discussion
- Topic: Dynamic bodies collision
- Replies: 4
- Views: 33465
- Mon Aug 10, 2015 6:06 pm
- Forum: Box2D tutorial discussion
- Topic: Dynamic bodies collision
- Replies: 4
- Views: 33465
Re: Dynamic bodies collision
Hello and thanks, Sorry for the late answer. I'm trying to understand your answers on the different links and i think i've managed to understand it but i'm facing a problem. If i understand correctly each player need to have 2 body (a dynamic body and a kinematic). Those 2 bodies should not collide ...
- Mon Aug 03, 2015 8:38 pm
- Forum: Box2D tutorial discussion
- Topic: Dynamic bodies collision
- Replies: 4
- Views: 33465
Dynamic bodies collision
I'm implementing Box2D for my 2d top down LIBGDX game and i have some struggle with two dynamic body. Currently, my two bodies are created that way : BodyDef bodyDef = new BodyDef(); bodyDef.type = BodyType.DynamicBody; bodyDef.position.set(this.x, this.y); this.body = world.createBody(bodyDef); Pol...