Search the Community
Showing results for tags 'box2d body movements'.
-
I tried to set up a test demo to see if Box2D physics are working. It works, but I have one small problem: I cannot seem to get the dynamic b2Body to fall faster. I tried modifying and setting the gravity and its gravityScale, its fixture, the density. I also tried applyForce and setLinearVelocity in a constant loop. I tried passing different values for the b2World.Step() function, by giving it different dt, velocityIterations and positionIterations. I know it has nothing to do with it, but I also tried modifying the mass of the body. By changing the gravity, I only managed to decrease its falling speed. This is currently the falling speed. I managed to find a way to increase the falling speed of the dynamic body, but only because I performed a b2World.Step() function multiple times per loop. I do not want to use that method to increase the falling speed. This is the falling speed with multiple b2World.Step()-calls. Do you have any suggestions what I could use to increase the falling speed of the dynamic body?
-
Hi, How to stop the stop the box2d body movements after collision with the player. Suppse there is a wall and the player collides with the wall.How to stop the wall movements after the collision with the player. Thanks and Regards, Suresh Nadar