I am trying to display the speed of a game object in MPH using a GUI text. I think that my code is right because the GUI text is on the screen but it doesn't move past zero.
var myObject : GameObject;
var gui : GameObject;
function Update () {
//gui.guiText.text = "Speed: " + myObject.rigidbody.velocity.magnitude.ToString() + "m/s";
}
What am I doing wrong?