atan2(x, y) returns the smallest angle in clockwise degrees between the vector (0, 1) and the vector (x, y).
Given a vector from one point to another point, this gives you an angle in degrees. This angle can be used for getting a rotation matrix to point something toward something else using atom.transform.
Atan2 |
|
atan2(x, y) |
Copyright © 2024 BYOND Software.
All rights reserved.