From: Daniel Karbach Date: Tue, 8 Dec 2015 13:43:13 +0000 (+0100) Subject: fix AI chase/flee acceleration X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=c4416bc2a5e446d0ba99cfeb50bb5fab287a1c4e;p=blank.git fix AI chase/flee acceleration --- 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) ;