Skip to content

eulerjs API / @eulerjs/vehicle / GroundSurface

GroundSurface ​

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

What the ground under a wheel is like, as RaycastVehicleOptions.surface tells it.

Properties ​

PropertyTypeDescriptionDefined in
grip?numberWhat it scales the tyre's grip by: 1 on the ground the tyre's grip is given for, less on grass or gravel. Defaults to 1.packages/vehicle/src/RaycastVehicle.ts:7
height?numberHow far the ground there stands above the surface the wheel's ray hit, in metres, below it if negative: bumps, ripples and kerbs too small or too many to be colliders, felt through the suspension. Defaults to 0.packages/vehicle/src/RaycastVehicle.ts:15
rollingResistance?numberAdded to the tyre's rolling resistance, as a share of its load: deep gravel drags a car down. Defaults to 0.packages/vehicle/src/RaycastVehicle.ts:9

Released under the MIT License.