amethyst / evoli

An ecosystem-simulation game made with Amethyst
https://community.amethyst.rs/t/evoli-introduction/770
Other
217 stars 33 forks source link

Wall avoidance system #71

Closed a5huynh closed 5 years ago

a5huynh commented 5 years ago

Closes #11. Based a bit on #67.

a5huynh commented 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.

marotili commented 5 years ago

@a5huynh Yep that was my intention, but maybe another (more explicit) approach might fit better. Not sure about it.

a5huynh commented 5 years ago

@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!

marotili commented 5 years ago

No this looks great. Thank you :)