Skip to content

five-on-it / apps/client/src/renderer/remotes / leanInto

Function: leanInto() ​

leanInto(node, speed, yawRate): void

Defined in: apps/client/src/renderer/remotes.ts:418

Tilts a two-wheeler's node into its turn: the lean a rider needs to balance the centripetal acceleration (v·ω/g), drawn on top of the simulated upright pose. Positive yaw rate turns toward +x (left), so the top of the bike goes toward +x.

Parameters ​

node ​

Placed

speed ​

number

yawRate ​

number

Returns ​

void