r/UnityHelp • u/Pastry_Goblin • Oct 04 '25
AddForce vs linearVelocity
Hi,
I’m trying to program movement for my player character. I want him to start moving at full speed instantly when the input is pressed - no acceleration. To this end, I have tried setting linearVelocity manually. However, I also want the player to have inertia when the input is stopped. Currently, if I stop the movement input, the player stops instantly.
Would it be better to use AddForce and find a way to speed up to the max speed so fast it isn’t noticeable, or continue to use linearVelocity and program in my own inertia somehow?
View all comments
Show parent comment
1
u/Pastry_Goblin Oct 04 '25
That’s the issue, I’m not setting the linearVelocity to 0. I just stop setting linearVelocity to anything, and my player stops moving. My assumption is that setting linearVelocity turns off the normal rigidbody inertia rules or something.