- Home /
Character Motor doesn't reach max speed
I have a simple top down controller running my character motor and it seemed to be working fine, but when I output the velocity (for another script I was writing) I noticed that the forward and backward velocity of the character never reach their maximum values whereas the sideways velocity will. It's off by a noticeable amount to, sometimes the forward and backward velocities barely reach 14 with a maximum of 20. I'm hoping this is a common problem because it is very noticeable ingame.
I'm using what I believe is a Unity script called 2DTop Down Controller along with the required character motor and controller. Below is the only script I have attached that I wrote, but I don't think it has any effect.
#pragma strict
private var controller : CharacterController;
var SoundLevel : float;
function Start ()
{
controller = GetComponent(CharacterController);
}
function Update ()
{
SoundLevel = controller.velocity.magnitude;
}
Your answer
Follow this Question
Related Questions
Modified CharacterController.Move script not working 1 Answer
How to create an eight point 3d character controller in unity with rigidbody enabled 0 Answers
Character Motor - Make it move in Global Space 0 Answers
How can i move my character that is not a human. i.e. Animal, Lion,bear or crocodile ? 0 Answers