Hi,
It's my firt time with JBox2d (use to develop a platform game) and something weird happens with my "main character" (who's actually only a rectangle dynamic body):
Once he touches the platform under him, he collides and stays on it. Great, but the gravity doesn't reset upon contact and my body, who cans actually jump, is unable to jump after few seconds, due to a gravity that tackle him on the ground and continually raises on my character.
My question is: did I miss something about: me who must reset the Y-axis force on my object at each contact, or my world is misconfigured or anything else? I tried to set world.ClearForces() and set his autoClearForces to "true", but nothing changes that behavior.
Thanks anyone.
It's my firt time with JBox2d (use to develop a platform game) and something weird happens with my "main character" (who's actually only a rectangle dynamic body):
Once he touches the platform under him, he collides and stays on it. Great, but the gravity doesn't reset upon contact and my body, who cans actually jump, is unable to jump after few seconds, due to a gravity that tackle him on the ground and continually raises on my character.
My question is: did I miss something about: me who must reset the Y-axis force on my object at each contact, or my world is misconfigured or anything else? I tried to set world.ClearForces() and set his autoClearForces to "true", but nothing changes that behavior.
Thanks anyone.