-
Hey, im looking at ECS options and I really love how this looks. Is it possible in an update to get 2 views so you can test a list of entities vs another. Bad psuedocode example:
|
Beta Was this translation helpful? Give feedback.
Answered by
player-03
Dec 18, 2023
Replies: 1 comment 2 replies
-
Absolutely! var bullets = Echoes.getView(Projectile, Collider);
var enemies = Echoes.getView(Enemy, Collider);
for(bullet in bullets) {
for(enemy in enemies) {
// If the bullet is touching the enemy, kill it
}
} Alternatively, if you're in a |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
NitroPlum
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Absolutely!
Alternatively, if you're in a
System
, you can callgetLinkedView(Projectile, Collider)
, which works the same but shuts down theView
if the system is deactivated.