This commit is contained in:
2022-05-18 19:57:23 +03:00
commit 0ad135ca0f
73 changed files with 2282 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Sandbox.ModAPI.Ingame
{
public interface IMyMotorSuspension : IMyMotorBase
{
bool Steering { get; }
bool Propulsion { get; }
bool InvertSteer { get; }
bool InvertPropulsion { get; }
float Damping { get; }
float Strength { get; }
float Friction { get; }
float Power { get; }
float Height { get; }
/// <summary>
/// Wheel's current steering angle
/// </summary>
float SteerAngle { get; }
/// <summary>
/// Max steering angle in radians.
/// </summary>
float MaxSteerAngle { get; }
/// <summary>
/// Speed at which wheel steers.
/// </summary>
float SteerSpeed { get; }
/// <summary>
/// Speed at which wheel returns from steering.
/// </summary>
float SteerReturnSpeed { get; }
/// <summary>
/// Suspension travel, value from 0 to 1.
/// </summary>
float SuspensionTravel { get; }
/// <summary>
/// Set/get brake applied to the wheel.
/// </summary>
bool Brake { get; set; }
}
}