1
Fork 0
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:
Rich Dunne 2021-05-15 09:52:28 -06:00
parent f2729a41b4
commit 990c745d6d

View 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;
}
}
}