Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
calulcate angle between current position and target posiiton on an x y plane
antnh1
Programming language:
Whatever
2021-07-23 21:55:46
0
Q:
calulcate angle between current position and target posiiton on an x y plane
P.C.
Code:
Whatever
2021-08-02 01:24:03
myradians = math.atan2(targetY-gunY, targetX-gunX)
0
Tags
target
get
between
position
Related
check if point is left or right of vector
r find difference between two vectors
maximum in vector
unity rotation between 2 points
get all coordinates between two points
New to Communities?
Join the community