hifi: #21279 Kris: Implement 'FindEntityByType' function in Entities API

Extend EntityTree.h / EntityTree.cpp to implement a "findEntitiesByType" function that can be exposed to the Javascript API.

Pass in a string that corresponds to an entity type (e.g. "Zone", "Web", etc) and search a specific radius (or optionally allow a specific radius). Filter the results in foundEntities by the type that matches and reduce down the list.

Entities.findEntitiesByType("Zone", 10000); // returns all zones within the specified radius

Comments & Activity

Labels Saved!


Login to bid
Who Amount Done in ...
No bids yet.