Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 509 Bytes

getOverlappingArea.md

File metadata and controls

15 lines (9 loc) · 509 Bytes
ex.getOverlappingArea(displayObject, otherDisplayObject)

Return a value for how much area two display objects are overlapping with. Will use the global x and y positions. Will use hitArea if defined, otherwise height and width.

Arguments

displayObject (PIXI.DisplayObject): The first display object to use for overlap detection.

otherDisplayObject (PIXI.DisplayObject) The second display object to use for overlap detection.

Returns

(Number): The area that is overlapping.