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!
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 ^^)
0
Thank you so much!