five-on-it / apps/client/src/renderer/figure / strideHeading
Function: strideHeading()
strideHeading(
facing,vx,vz):number
Defined in: apps/client/src/renderer/figure.ts:58
Which way a figure facing facing (a yaw: 0 faces +z, positive turns toward +x, the figure's left) moves with the velocity (vx, vz), relative to its facing: 0 straight ahead, positive to its right, ±π backward. A figure strafes with its legs swinging that way.
Parameters
facing
number
vx
number
vz
number
Returns
number