Skip to content

five-on-it / packages/sim/src/weather / weatherGrip

Function: weatherGrip() ​

weatherGrip(sim, x, y, z): number

Defined in: packages/sim/src/weather.ts:56

The share of its grip a tyre keeps at (x, z) (a body at height y) in this tick's weather: 1 when the ground is dry and bare; less on a wet road, in mud, on snow.

Parameters ​

sim ​

SimWorld

x ​

number

y ​

number

z ​

number

Returns ​

number