浏览代码

Update Whiskers_agents_tilemap_v4.c

Rudy Boudewijn van Etten 4 年之前
父节点
当前提交
47d22f3d0f
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      ai/Whiskers_agents_tilemap_v4.c

+ 6 - 2
ai/Whiskers_agents_tilemap_v4.c

@@ -8,8 +8,12 @@
 
 //
 // Here I addded a trail. somewhere in the trial I check if the whiskers touch this spot and block that whisker than
-// from being selected for a new direction. 
-//
+// from being selected for a new direction. The trail are two arrays of a x and y integer. The top position
+// is filled with the current ai's position. Before this is inserted the array is shifted down, this so the
+// path history is saved.
+// This current version is not tweaked into taking into account different movement speeds. This because if
+// the ai moves faster/slower it means the collision with the whiskers and the collision point would be
+// in a diffent spot(break)
 //
 
 //