Farama-Foundation / MAgent2

An engine for high performance multi-agent environments with very large numbers of agents, along with a set of reference environments
https://magent2.farama.org
MIT License
219 stars 37 forks source link

How to know if an agent is in another's attack range? #5

Closed ElizabethDuo closed 1 year ago

ElizabethDuo commented 1 year ago

Hi there, I would like to know if there is an function to get the bool of if an agent is in another's attack_range, or to get all agents attackable.

If there is not, I know that attack range is set by CircleRange(radius). Is the radius means the euclidean distance between two agents?

dsctt commented 1 year ago

Hi, there currently is not a function that returns such values. And you are correct about the CircleRange(radius).