I'm trying to change the velocity of a character controller component on a Third Person Controller, but when I try to change it, the console says the velocity is read only. This is my code.
P.GetComponent(CharacterController).velocity = 0;
(P is my player GameObject variable)
So, any ideas on how to change this?
Thanks, Chris.
new Vector3()
instead of0.0f
what happens? \$\endgroup\$