Skip to content

1681-engine / index / combineSteering

Function: combineSteering() ​

ts
function combineSteering(maxForce, ...weighted): SteerVec;

Defined in: src/nav/steering.ts:150

Weighs steering forces, sums them and caps the sum at maxForce (px/s of change a step).

Parameters ​

ParameterType
maxForcenumber
...weighted[SteerVec, number][]

Returns ​

SteerVec

Released under the MIT License.