Check if overlapping a point or aligned bounding box * @param {Vector2} pos - Center of box * @param {Vector2} [size=vec2()] - Size of box, uses a point if undefined * @return {boolean}
(pos, size=vec2())
| 496 | * @param {Vector2} [size=vec2()] - Size of box, uses a point if undefined |
| 497 | * @return {boolean} */ |
| 498 | isOverlapping(pos, size=vec2()) |
| 499 | { return isOverlapping(this.pos, this.size, pos, size); } |
| 500 | |
| 501 | /** Set how this object collides |
| 502 | * @param {boolean} [collideSolidObjects] - Does it collide with solid objects? |
no test coverage detected