amethyst / amethyst/legion

How to query for "entities on screen," or "in range entities"?

Open
#88 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.7k
Forks
140
PR merge metrics
No merged PRs in 30d

Description

Looking for advice here. Have others dealt with the issue of introspecting whats going on on the screen, or querying for "in range entities"?

For example, how would I get a list of the entities that are visible on the screen right now, with all components, and show them in one nice imgui window (think of a mini-map)?

A similar problem is how to iterate over all enemies within range of the player's spell. Would you cache the distance-to-player somehow? Or is there another way to query for entities in range of another entity?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.