Skip to content

eulerjs API / @eulerjs/vehicle / WheelOptions

WheelOptions ​

Defined in: packages/vehicle/src/RaycastVehicle.ts:18

Properties ​

PropertyTypeDescriptionDefined in
grip?numberThe most force the tyre takes along the ground, as a share of the load on it: about 1 on dry asphalt. Defaults to 1.packages/vehicle/src/RaycastVehicle.ts:30
inertia?numberWith tyres: 'slip': the wheel's moment of inertia about its axle, tyre, rim and brake disc together, in kg·m². Defaults to 1.packages/vehicle/src/RaycastVehicle.ts:34
loadSensitivity?numberWith tyres: 'slip': how much less the tyre grips for each newton as it is loaded, the exponent k in grip × (load / nominalLoad)^−k. Twice the load gives 2^−k as much grip a newton: 7% less at the default, 0.1.packages/vehicle/src/RaycastVehicle.ts:46
mountVector3Where the wheel's suspension is fixed to the chassis, in the body's frame. The wheel hangs below it, down the body's up axis.packages/vehicle/src/RaycastVehicle.ts:20
nominalLoad?numberWith tyres: 'slip': the load the tyre grips by grip at, in newtons. Defaults to its share of the body's weight.packages/vehicle/src/RaycastVehicle.ts:48
peakSlipAngle?numberWith tyres: 'slip': the slip angle the tyre corners hardest at, in radians. Defaults to 0.1, about 6°.packages/vehicle/src/RaycastVehicle.ts:36
peakSlipRatio?numberWith tyres: 'slip': the slip ratio, (spin × radius − speed) / speed, the tyre pulls or brakes hardest at. Defaults to 0.1.packages/vehicle/src/RaycastVehicle.ts:38
radiusnumberIn metres.packages/vehicle/src/RaycastVehicle.ts:22
rollingResistance?numberThe force against the tyre's rolling, as a share of the load on it. Defaults to 0.015.packages/vehicle/src/RaycastVehicle.ts:32
slidingGrip?numberWith tyres: 'slip': the grip left when the tyre slides well past its peak, as a share of it, above 0 and below 1. Defaults to 0.75.packages/vehicle/src/RaycastVehicle.ts:40
springDampingnumberIn N·s/m.packages/vehicle/src/RaycastVehicle.ts:28
springStiffnessnumberIn N/m.packages/vehicle/src/RaycastVehicle.ts:26
suspensionLengthnumberHow far below the mount the wheel's centre hangs with its spring unloaded, in metres: how far it can travel.packages/vehicle/src/RaycastVehicle.ts:24

Released under the MIT License.