public virtual void FixedUpdate() { GetInput(); Steer(); Accelerate(); UpdateWheelPoses(); AnalogueSpeedoMeter.SpeedToAngle(this.GetComponent <Rigidbody>().velocity.magnitude, 0, 25); this.GetComponent <Rigidbody>().velocity = Vector3.ClampMagnitude(this.GetComponent <Rigidbody>().velocity, 5); }
// Start is called before the first frame update void Start() { theSpeedo = this; }