MCPcopy
hub / github.com/KilledByAPixel/LittleJS / isOverlapping

Method isOverlapping

src/engineObject.js:498–499  ·  view source on GitHub ↗

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())

Source from the content-addressed store, hash-verified

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?

Callers 3

isOverlappingObjectMethod · 0.95
engineObjectsCollectFunction · 0.80
updateMethod · 0.80

Calls 2

vec2Function · 0.85
isOverlappingFunction · 0.85

Tested by

no test coverage detected