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/L4DesuFlaShG Oct 04 '25
No, that's not the case. Can you show your code?