MCPcopy Create free account
hub / github.com/dabing1022/Blog / accumulateForce

Method accumulateForce

Processing/game2dai/steering/AutoPilot.java:2115–2138  ·  view source on GitHub ↗

This method is used by the PRIORITISED force calculation method. For each active behaviour in turn it calculates how much of the maximum steering force is left then adds that amount of to the accumulator. @param runningTotal running total @param forceToAdd the force we want to add from the cur

(Vector2D runningTotal, Vector2D forceToAdd, double maxForce)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

calculatePrioritisedMethod · 0.95

Calls 4

lengthMethod · 0.80
normalizeMethod · 0.80
multMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected