Hi,
I would like my main game character to be Box2D controlled (as the rest of the environment is). However I'm having trouble applying the right sort of force / settings so that when the user presses a key he moves left/right/jumps, but stops again immediately when they let go of the keyboard.
Everything I have tried so far results in him "sliding" to a halt. I tried setting no friction on the environment, setting the mass of the player to be really small (and thus light) but no matter what combination of values I try he always appears to be walking on ice, even if only very slightly. He takes a short while to "accelerate" and then to grind to a halt again.
I also noticed he sometimes got stuck on the map tiles (two identical tiles, aligned next to each other, he appears to get stuck where they join on some occasions).
Is this possible or should I look for another way?
I would like my main game character to be Box2D controlled (as the rest of the environment is). However I'm having trouble applying the right sort of force / settings so that when the user presses a key he moves left/right/jumps, but stops again immediately when they let go of the keyboard.
Everything I have tried so far results in him "sliding" to a halt. I tried setting no friction on the environment, setting the mass of the player to be really small (and thus light) but no matter what combination of values I try he always appears to be walking on ice, even if only very slightly. He takes a short while to "accelerate" and then to grind to a halt again.
I also noticed he sometimes got stuck on the map tiles (two identical tiles, aligned next to each other, he appears to get stuck where they join on some occasions).
Is this possible or should I look for another way?