Player Body Position sometimes changes.

Here's the place to get help and discuss features. The focus is on the C++ version, but generic questions are welcome.
Posts: 3
Joined: Tue Mar 29, 2016 7:41 am

Player Body Position sometimes changes.

Postby Ildelian » Sun Apr 03, 2016 7:30 am

I have a Simply Box2D Game.

A Dynamic Player. A Static Floor. A static Diamonds Matrix.

You can see the problem in this video.

The player sometimes pass through the floor and the diamonds instead of walk over it.

I have analyzed the body.getPosition() before and after the player pass through the Static objects and this is the result:

body.getPosition().x = 0.5
body.getPosition().y = 1.0


body.getPosition().x = 0.48
body.getPosition().y = 0.51


I start the game.
I start to walk over the floor.
Randomly , the player collides with an invisible object, the player make a little jump and then pass through the floor.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests