From c4416bc2a5e446d0ba99cfeb50bb5fab287a1c4e Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Tue, 8 Dec 2015 14:43:13 +0100 Subject: [PATCH] fix AI chase/flee acceleration --- src/ai/ai.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ai/ai.cpp b/src/ai/ai.cpp index 820eb4d..db4ae41 100644 --- a/src/ai/ai.cpp +++ b/src/ai/ai.cpp @@ -147,7 +147,7 @@ unsigned int AIController::Decide(unsigned int num_choices) noexcept { void ChaseState::Enter(AIController &ctrl, Entity &e) const { e.GetSteering() - .SetAcceleration(1.0f) + .SetAcceleration(5.0f) .SetSpeed(4.0f) .Enable(Steering::PURSUE_TARGET) ; @@ -184,7 +184,7 @@ void ChaseState::Exit(AIController &ctrl, Entity &e) const { void FleeState::Enter(AIController &ctrl, Entity &e) const { e.GetSteering() - .SetAcceleration(1.0f) + .SetAcceleration(5.0f) .SetSpeed(4.0f) .Enable(Steering::EVADE_TARGET) ; -- 2.39.2