-
Notifications
You must be signed in to change notification settings - Fork 2
Speedometer_Controller Public Variables
Car - Attach the car's rigid body to this variable.
Maximum_Speed - Set this to the maximum speed of the car.
Minimum_Speed_Arrow_Angle - Set this to the rotation of the needle when its speed is 0 (or its minimum speed)
Maximum_Speed_Arrow_Angle - Set this to the rotation of the needle when it is at its maximum speed.
Speed_In_KPH - If this is set to true, then the speed will be displayed in KPH (km/h).
Gear_Speeds - These will be the speeds for each gear.
Speed_Text - Set this to the Text that will display the speed.
Arrow - Set this to the object that represents the arrow/needle (this will be the one rotating).
Gear_Text - Set this to the Text object that displays the gear the car is at.
These are all read-only values.
I used this tutorial for the foundation of the script, I just built upon it but I am crediting this guy anyway