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
.
displayObject
(PIXI.DisplayObject): The first display object to use for overlap detection.
otherDisplayObject
(PIXI.DisplayObject) The second display object to use for overlap detection.
(Number): The area that is overlapping.