Question by
btonios · Oct 22, 2015 at 08:10 AM ·
charactercontrollerspeedmove an object
How to keep moving an object only with its speed?
Hi,
I'm trying to move an object with CharacterController, using GetAxis and CharacterController.Move. I made a speed system, which is going from 0 to 30. What I want, is that the player keep moving, with his remaining speed, even if the key for moving isn't pressed. I'll give you an example, because my english is pretty bad: My player is at 15 of speed and I stop pressing the key. Then actually, my player is stopping and my speed is progressively dicreasing. What I want, is that the player is when I stop pressing my key, the player keep moving, until the speed reach 0.
Again, sorry for my bad english, and hope for a fast answer, since I'm trying to solve this problem for almost 3 days now ^^
Comment