]> git.localhorst.tv Git - blank.git/commitdiff
fix AI chase/flee acceleration
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 8 Dec 2015 13:43:13 +0000 (14:43 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 8 Dec 2015 13:43:13 +0000 (14:43 +0100)
src/ai/ai.cpp

index 820eb4d19a996aabdc1e89a188ec06710f11d0eb..db4ae413d8170a9dbc5f7f7056978a0615f6e5ee 100644 (file)
@@ -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)
        ;