Hi,
Another feature i use in gameplay a lot : collision detection volumes
For example you can have rectangle or sphere shape collision volume functions you can use with some parameters :
- position shape
- dimension shape
- layer collision to detect only
The function will return a list of all game objects colliding with that sphere or rectangle collision volume.
It's based on performance because it uses physic engie to detect colliding game objects, so it does not iterate over your hundred game world entities.
There is multiple usage :
- get all ennemies in some zone, or around some position within some distance
- detect all covers around
- AI get all strategic position or items in some zone or around player
...