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
| Property | Type | Description | Defined in |
|---|---|---|---|
grip? | number | What 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? | number | How 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? | number | Added 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 |
