Class VehicleDesc¶
Namespace: Apogee.Physics
Assembly: Apogee.Physics.dll
A vehicle: its engine, drivetrain and wheels. Give it to
public sealed class VehicleDesc : EngineObject
Inheritance¶
object ← EngineObject ← VehicleDesc
Inherited Members¶
EngineObject.IsAdopted, EngineObject.Handle, EngineObject.IsDestroyed, EngineObject.Class, EngineObject.Adopt(), EngineObject.TryGet(SlotHandle, out EngineObject), EngineObject.Destroy(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Properties¶
Class¶
What the registry knows about this object's class.
public override ClassInfo Class { get; }
Property Value¶
ClutchSlipRpm¶
How many rpm the clutch slips at full engine torque: lower is a stiffer clutch.
public float ClutchSlipRpm { get; set; }
Property Value¶
DifferentialRatio¶
The final drive: engine revs per wheel rev, before the gear the game drives through.
public float DifferentialRatio { get; set; }
Property Value¶
Drive¶
public DriveKind Drive { get; set; }
Property Value¶
EngineInertia¶
The engine's flywheel inertia in kg·m².
public float EngineInertia { get; set; }
Property Value¶
EngineMaxRpm¶
public float EngineMaxRpm { get; set; }
Property Value¶
EngineMaxTorque¶
Torque at the best rev, in N·m.
public float EngineMaxTorque { get; set; }
Property Value¶
EngineMinRpm¶
public float EngineMinRpm { get; set; }
Property Value¶
EngineTorqueCurve¶
The torque at each rev as a share of the maximum, sampled evenly from 0 to the maximum rpm (at least two values); empty is the same torque at every rev.
public float[] EngineTorqueCurve { get; set; }
Property Value¶
float[]
MaxPitchRollAngle¶
The vehicle's body is helped upright beyond this pitch or roll, in degrees.
public float MaxPitchRollAngle { get; set; }
Property Value¶
TrackBrakeTorque¶
Brake torque of a track's sprocket (tracked vehicles).
public float TrackBrakeTorque { get; set; }
Property Value¶
Wheels¶
public WheelDesc[] Wheels { get; set; }