VehicleDesc¶
Extends EngineObject.
A vehicle: its engine, drivetrain and wheels. Give it to PhysicsWorld.CreateVehicle with the entity of a dynamic body.
Create one with VehicleDesc.new().
Properties¶
drive: DriveKindwheels: { WheelDesc }engine_max_torque: numberTorque at the best rev, in N·m.engine_min_rpm: numberengine_max_rpm: numberengine_torque_curve: { number }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.engine_inertia: numberThe engine's flywheel inertia in kg·m².differential_ratio: numberThe final drive: engine revs per wheel rev, before the gear the game drives through.clutch_slip_rpm: numberHow many rpm the clutch slips at full engine torque: lower is a stiffer clutch.track_brake_torque: numberBrake torque of a track's sprocket (tracked vehicles).max_pitch_roll_angle: numberThe vehicle's body is helped upright beyond this pitch or roll, in degrees.