andriyDev / landmass

A navigation system for video games written in Rust.
Apache License 2.0
14 stars 1 forks source link

Add support for non-AI controlled characters. #39

Closed andriyDev closed 3 weeks ago

andriyDev commented 3 weeks ago

Previously, there was no good way to represent non-AI characters. You maybe could have made an agent that never had a target, but this was hacky at best. Now we have proper support for non-AI characters. Users just need to add characters using Archipelago::add_character and then keep their position/velocity updated. AI characters will then avoid these characters.

Fixes #9.