20 lines
392 B
C#
20 lines
392 B
C#
using System;
|
|
|
|
namespace VeloX;
|
|
|
|
public struct Friction
|
|
{
|
|
public float SlipCoef { get; set; }
|
|
public float ForceCoef { get; set; }
|
|
|
|
public float Force { get; set; }
|
|
public float Slip { get; set; }
|
|
public float Speed { get; set; }
|
|
|
|
|
|
public override readonly string ToString()
|
|
{
|
|
return $"Force:{Math.Round(Force, 2)}\nSlip:{Math.Round(Slip, 2)}\nSpeed:{Math.Round(Speed, 2)}";
|
|
}
|
|
}
|