Implement DDA raycasting, fix bug in path smoothing

This commit is contained in:
2023-11-25 10:56:26 +01:00
parent 2c3ee8afd6
commit 6240eeea1c
4 changed files with 86 additions and 21 deletions

View File

@@ -171,7 +171,7 @@ void renderDebugPath(ecs_iter_t *it) {
Path *path = ecs_field(it, Path, 1);
for (i32 i = 0; i < it->count; i++) {
PathData *pathData = path->paths;
PathData *pathData = path[i].paths;
bool first = true;
while (pathData) {
for (i32 iPath = 0; iPath < pathData->numWaypoints; iPath++) {