mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-10 15:20:29 +01:00
Initial commit
This commit is contained in:
parent
f2729a41b4
commit
990c745d6d
1 changed files with 16 additions and 0 deletions
16
SceneManager/Utils/HelperMethods.cs
Normal file
16
SceneManager/Utils/HelperMethods.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using Rage;
|
||||
using SceneManager.Menus;
|
||||
|
||||
namespace SceneManager.Utils
|
||||
{
|
||||
internal class HelperMethods
|
||||
{
|
||||
internal static float ConvertDriveSpeedForWaypoint(float speed)
|
||||
{
|
||||
float convertedSpeed = SettingsMenu.SpeedUnits.SelectedItem == SpeedUnits.MPH
|
||||
? MathHelper.ConvertMilesPerHourToMetersPerSecond(speed)
|
||||
: MathHelper.ConvertKilometersPerHourToMetersPerSecond(speed);
|
||||
return convertedSpeed;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue