]> git.localhorst.tv Git - blank.git/blobdiff - src/ai/ai.cpp
fix AI chase/flee acceleration
[blank.git] / 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)
        ;