- Home /
Question by
antonsimmerle · Apr 01 at 05:34 PM ·
movementspeedplayer movementacceleration
Acceleration with CC
Hey guys, I game is Charakter Controller based and I want to add an acceleration, but can't find anything helpful in the internet. I would be really great if I could define the acceleration form zero to max and form max to zero. I really hope someone knows how I can add this to the game.
Here's the player movement:
//Movement
float x = Input.GetAxisRaw("Horizontal");
float z = Input.GetAxisRaw("Vertical");
Vector3 move = transform.right * x + transform.forward * z;
velocity.y += gravity * Time.deltaTime;
controller.Move(move * speed * Time.deltaTime);
controller.Move(velocity * Time.deltaTime);
Comment
Your answer
Follow this Question
Related Questions
Character Movement 2 Answers
Movement/Acceleration problems 1 Answer
Why are my wheels not moving at the same speed as my car? 0 Answers
Wheel rotation help cant work out the problem? 0 Answers
Add acceleration to movement 0 Answers