Module core/physics/utils/rectToRectIntersect
Functions
rectToRectIntersect
- rectToRectIntersect(rect: Sprite | Rect | RoundRect | { h: number; position: { x: number; y: number }; w: number }, rect2: Sprite | Rect | RoundRect | { h: number; position: { x: number; y: number }; w: number }): boolean
Parameters
Returns boolean
Returns a boolean based on if a rectangle is intersecting with a rectangle
1.1.0-beta