Use center position for path following, tweak proximity threshold

This commit is contained in:
2024-02-13 13:13:43 +01:00
parent 7d8dec5ef7
commit acebdceb6c
6 changed files with 15 additions and 12 deletions

View File

@@ -41,8 +41,8 @@ void setAIBehaviour(ecs_entity_t entity, const BzBTNode *root,
if (blackboard) {
AIBlackboard *b = ecs_get_mut(ECS, entity, AIBlackboard);
*b = *blackboard;
if (b->proximity < 2.0f)
b->proximity = 2.0f;
if (b->proximity < 4.0f)
b->proximity = 4.0f;
}
BzBTState *state = ecs_get_mut(ECS, entity, BzBTState);