So you know the context, I am making a top-down action adventure like the Legend of Zelda games. I want characters and objects to move at constant velocities (no acceleration or deceleration), slide around walls instead of bouncing off them, and to be able to push each other around only in a (semi) controlled manner.
Characters are circles while walls are squares. I've been using setLinearVelocity for character movement, where a character's velocity is set each frame based on what direction it wants to go.
This has been working pretty good so far except for one thing: characters jitter when they try to move into an obstacle. A character that tries to walk straight into a wall is not simply stopped like I want, but jitters while pressing into the wall.
I suspect I'd get more stable results if I use applyForce or applyImpulse instead, but am unsure how to use those to ensure constant movement speeds.
Characters are circles while walls are squares. I've been using setLinearVelocity for character movement, where a character's velocity is set each frame based on what direction it wants to go.
This has been working pretty good so far except for one thing: characters jitter when they try to move into an obstacle. A character that tries to walk straight into a wall is not simply stopped like I want, but jitters while pressing into the wall.
I suspect I'd get more stable results if I use applyForce or applyImpulse instead, but am unsure how to use those to ensure constant movement speeds.