0

Please fix this code (Javascript angles)

https://code.sololearn.com/WqiB78ALNAJz/?ref=app I know how to get angles but for some reason I can't get the two things to face eachother. I want both things to be able to point towards eachother using angels, but I keep breaking it. Please fix this!

26th Jan 2021, 2:31 AM
Cam UOR
Cam UOR - avatar
2 odpowiedzi
+ 3
https://code.sololearn.com/WUYCaCrx39Wk/?ref=app removed: rad/deg and deg/rad convertion added: Math.PI/2 to final angle (0 tip to up in your canvas, while in math 0 tip to right ^^)
26th Jan 2021, 2:54 AM
visph
visph - avatar
0
Thank you so much!
26th Jan 2021, 2:55 AM
Cam UOR
Cam UOR - avatar