Search found 3 matches

by Ildelian
Sun Apr 03, 2016 7:30 am
Forum: General Discussion
Topic: Player Body Position sometimes changes.
Replies: 0
Views: 736

Player Body Position sometimes changes.

I have a Simply Box2D Game. A Dynamic Player. A Static Floor. A static Diamonds Matrix. You can see the problem in this video. https://youtu.be/iaH_ex8eVVk The player sometimes pass through the floor and the diamonds instead of walk over it. I have analyzed the body.getPosition() before and after th...
by Ildelian
Sun Apr 03, 2016 5:04 am
Forum: Java
Topic: Collision Dont work
Replies: 1
Views: 1034

Re: Collision Dont work

I have found the problem.

TiledMAp is in Pixels. Box2D works in Meters. Scene2D works in Piexles

I need to convert the Units between meters and Pixels.
by Ildelian
Tue Mar 29, 2016 9:27 am
Forum: Java
Topic: Collision Dont work
Replies: 1
Views: 1034

Collision Dont work

Hi to everyone. I am doing a 2D platform game with Box2D and LibGdx. I made a level with TiledMap and load it in box2D. I can put players and create objects with no problem except when i import the objects from the tiled map, i can see the objects but my player can't collide with it. My player, and ...

Go to advanced search