Closed a5huynh closed 5 years ago
@marot Yeah that's no problem! Would this be related to the changes you made in your PR to the SeekSystem
to take in Rotation vectors? I can play around w/ that to get try and get that wall effect.
@a5huynh Yep that was my intention, but maybe another (more explicit) approach might fit better. Not sure about it.
@marot I adjusted your idea a bit w/ a rotation + magnitude. It seems to work, the creatures follow the wall now rather then run away (albeit they all take the same rotation away from the wall now).
Let me know if that works otherwise I can revert that commit!
No this looks great. Thank you :)
Closes #11. Based a bit on #67.
ClosestObstacleSystem
which adds any close walls as aClosest<Obstacle>
component on a creatureSeekSystem::<Obstacle>
that treats obstacle like a predator so the creature avoids it.