Triggers a callback for each object within a given area * @param {Vector2} [pos] - Center of test area, or undefined for all objects * @param {Vector2|number} [size] - Radius of circle if float, rectangle size if Vector2 * @param {ObjectCallbackFunction} [callbackFunction] - Calls this functio
(pos, size, callbackFunction, objects=engineObjects)
| 552 | * @param {Array<EngineObject>} [objects=engineObjects] - List of objects to check |
| 553 | * @memberof Engine */ |
| 554 | function engineObjectsCallback(pos, size, callbackFunction, objects=engineObjects) |
| 555 | { engineObjectsCollect(pos, size, objects).forEach(o => callbackFunction(o)); } |
| 556 | |
| 557 | /** Return a list of objects intersecting a ray |
| 558 | * @param {Vector2} start |
nothing calls this directly
no test coverage detected