PlaceholderGames / DinoPark-2017

repo for Dino Park 2017, the testbed for CS3S667
2 stars 0 forks source link

FieldOfView.cs thing to note (Can see yourself) #44

Closed ghost closed 6 years ago

ghost commented 6 years ago

Not sure how significant this is, however It is work noting that when you return a list of visible objects that your dino can see, you will also be able to see yourself.

Just thought Id mention this as it could mess with things such as herding as the anky/raptor might think it is near another when it is actually finding itself.

14065258 commented 6 years ago

Yeah, there's one problem that i noticed with this. In the FieldOfView script. Just below the "VisibleTargets.Clear()" in the findVisibleTargets function. you need to add the line "stererVisibleTargets.Clear()" otherwise the array will constantly be adding the same anky to the array each time.

ghost commented 6 years ago

51 fixes this issue