angleToPointer(displayObject, pointer, world) → {number}
Find the angle in radians between a display object (like a Sprite) and a Pointer, taking their x/y and center into account. The optional world argument allows you to return the result based on the Game Objects world property,instead of its x and y values. This is useful of the object has been nested inside an offset Group,or parent Game Object.
Parameters
Name Type Argument Default Description displayObject any The Display Object