Artificial Intelligence framework for games based on libGDX or not. Features: Steering Behaviors, Formation Motion, Pathfinding, Behavior Trees and Finite State Machines
Apache License 2.0
1.18k
stars
241
forks
source link
Do not let the predicted position affect steering. #68
While predicting, steering.linear is set from current position, leaving the agent to follow a direction away from 0,0[,0]. Especially visible when dealing with a zero flowVector if linear acceleration calculation is skipped. Clearing a steeringafter the flowField.lookup does the right thing, I believe.
While predicting,
steering.linear
is set from current position, leaving the agent to follow a direction away from 0,0[,0]. Especially visible when dealing with a zeroflowVector
if linear acceleration calculation is skipped. Clearing asteering
after theflowField.lookup
does the right thing, I believe.