What I don’t like whenever I use the velocity function to control my character, the change in direction is instant without mass. I want the change in direction of my character react like the impulse function, where my character decelerates before changing the direction, the problem with that is the charakter accelerates endlessly (in the velocity function it doesnt)
Hi,
With max value do you mean just the number linked to a button press and sent to the impulse function? With that, the character accelerates endlessly but I just want it to accelerate until a certain speed is reached.
The problem with the velocity function is the change in direction of my character (sideways) is too fast, I want it to decelerate before it changes the direction which works with the impulse function.
Yeah I prefer using velocity because it feels more precise to use. As adonisaru said above though, Ease can also be used to transition from the current speed down to 0.
There is also a behavior called Motor that might work better for you, however I don’t know what type of movement you are trying to create.
I couldn’t make it work. For example when my character walks to the right and I press the left arrow button, only after it’s release the easy starts to count, not at the time I pressed the button. Am I missing something?
The Motor Behavior is exactly what you want.
You can then also change the Physics Drag in the game settings if you want objects to deaccelarate Faster.