assets and etc.
This commit is contained in:
@@ -12,7 +12,7 @@ public partial class VeloXCar
|
||||
[KeyProperty] public float MaxForce { get; set; }
|
||||
[KeyProperty] public Vector3 Position { get; set; }
|
||||
}
|
||||
public const float RHO = 10.225f;
|
||||
public const float RHO = 1.225f;
|
||||
[Property, Feature( "Aerodinamics" )] public Vector3 Dimensions = new( 2f, 4.5f, 1.5f );
|
||||
[Property, Feature( "Aerodinamics" )] public float FrontalCd { get; set; } = 0.35f;
|
||||
[Property, Feature( "Aerodinamics" )] public float SideCd { get; set; } = 1.05f;
|
||||
@@ -52,4 +52,9 @@ public partial class VeloXCar
|
||||
foreach ( DownforcePoint dp in DownforcePoints )
|
||||
Body.ApplyForceAt( Transform.World.PointToWorld( dp.Position ), forceCoeff.MeterToInch() * dp.MaxForce.MeterToInch() * -WorldRotation.Up );
|
||||
}
|
||||
|
||||
//protected override void DrawGizmos()
|
||||
//{
|
||||
// Gizmo.Draw.LineBBox( new BBox( -Dimensions / 2 * 39.37f, Dimensions / 2 * 39.37f ) );
|
||||
//}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user