new PIXI.interaction.InteractionData()
Methods
-
getLocalPosition(displayObject, point, globalPos){PIXI.Point}
-
This will return the local coordinates of the specified displayObject for this InteractionData
Name Type Description displayObjectPIXI.DisplayObject The DisplayObject that you would like the local
coords offpointPIXI.Point optional A Point object in which to store the value, optional (otherwise
will create a new point)globalPosPIXI.Point optional A Point object containing your custom global coords, optional
(otherwise will use the current global coords)Returns:
Type Description PIXI.Point A point containing the coordinates of the InteractionData position relative
to the DisplayObject