Function Component used to get a list of Entities within a certain radius of a given position.
putils::vector<Entity::ID, KENGINE_QUERY_POSITION_MAX_RESULTS> (const putils::Point3f & pos, float radius);A vector of Entity IDs found within the specified area. The maximum number of Entities returned defaults to 64 and can be adjusted by defining the KENGINE_QUERY_POSITION_MAX_RESULTS macro.
pos: the center of the area to be inspectedradius: the maximum distance anEntityshould be fromposto be considered in the area
This function Component is typically implemented in physics systems (such as the BulletSystem), and can be called by user-defined systems.