Code/Vehicle/Wheel/Friction.cs
using Sandbox;
namespace Meteor.VehicleTool.Vehicle.Wheel;
public struct Friction
{
public Friction()
{
}
/// <summary>
/// Current force in friction direction.
/// </summary>
[ReadOnly] public float Force { get; set; }
/// <summary>
/// Speed at the point of contact with the surface.
/// </summary>
[ReadOnly] public float Speed { get; set; }
/// <summary>
/// Current slip in friction direction.
/// </summary>
[ReadOnly] public float Slip { get; set; }
/// <summary>
/// Mutliplies the X value (slip) of the friction graph.
/// </summary>
public float Stiffness { get; set; } = 1f;
/// <summary>
/// Multiplies the Y value (grip) of the friction graph.
/// </summary>
public float Grip { get; set; } = 1f;
}