angleBetweenCenters(source, target) → {number}
Find the angle in radians between centers of two display objects (like Sprites).
Parameters
Name | Type | Description |
---|---|---|
source | any | The Display Object to test from. |
target | any | The Display Object to test to. |
Returns
number -
The angle in radians between the source and target display objects.
- Source code: physics/arcade/World.js (Line 2024)
Please login to continue.