-
Notifications
You must be signed in to change notification settings - Fork 0
Speedometer (for Vehicles)
Grinch_ edited this page Jan 22, 2024
·
3 revisions
The Speedometer feature displays the vehicle's speed on the dashboard with an analog display. The needle of the speedometer rotates on the Y-axis, providing a visual representation of the speed. Follow the instructions below to adapt your model for the Speedometer functionality.
-
Needle Naming:
- Name the needle of your Speedometer as
x_sm
.
- Name the needle of your Speedometer as
-
Needle Positioning:
- Position the needle to point to 0 on the speed scale.
-
Pass Parameters:
- Configure the Speedometer by passing the maximum speed and the rotation required for the needle to point to the maximum speed.
- Use the following format for the needle name:
x_sm_m<max_speed>r<max_speed_rot>
.- Replace
<max_speed>
with the maximum speed value. - Replace
<max_speed_rot>
with the rotation value required for the needle to point to the maximum speed.
- Replace
Example:
x_sm_m120r180
By default, 100 is used for both
<max_speed>
and<max_speed_rot>
.
-
mph to kph:
- To change the unit to kilometers per hour (kph), add
_kph
to the needle name.
- To change the unit to kilometers per hour (kph), add
Suppose you want to configure the Speedometer with a maximum speed of 160 mph and a rotation of 220 degrees to point to the maximum speed:
- Name the needle
x_sm
. - Position the needle to point to 0 on the speed scale.
- Pass parameters:
x_sm_m160r220
.
To use kilometers per hour:
- Name the needle
x_sm_kph
. - Position the needle to point to 0 on the speed scale.
- Pass parameters:
x_sm_kph_m260r220
.
By following these steps, you integrate the Speedometer feature into your model, providing a simulated representation of the vehicle's speed on the dashboard.