+ 2

Pendulum broken

How can I fix the pendulum? It keeps going in the wrong direction. https://code.sololearn.com/WCnwEzPfwrSl/?ref=app

24th Jul 2020, 10:07 AM
Clueless Coder
Clueless Coder - avatar
3 Answers
+ 5
this.x = this.r * cos(this.a-90); this.y = this.r * sin(this.a-90); Line19,20
24th Jul 2020, 10:16 AM
Oma Falk
Oma Falk - avatar
+ 4
Nice code btw
24th Jul 2020, 10:16 AM
Oma Falk
Oma Falk - avatar
0
Thanks!
24th Jul 2020, 10:19 AM
Clueless Coder
Clueless Coder - avatar