Gravity

Hello 🙂

My goal is build a little game where many obj fall down and the player move his body from left to right and viceversa in order to avoid them.
Becouse gravity is on the player fall down too. Is there a solution to keep player the same y value ?

I tried to apply negative force but it doesnt work here. The SetLinearVelocity work fine but i dont know if that is the right way

can you help me ?thanks

Original thread: https://box2d.org/forum/viewtopic.php?t=6833