30DaysOfJavaScript
30DaysOfJavaScript copied to clipboard
[Bug]: Reset button is not working in Projectile Motion Simulator (89) for several cases
What happened?
When the velocity is high and the angle is steep, the body is moving out of the screen (which is okay), but when the reset button is pressed, its not getting reset and its getting restarted everytime.
How can we reproduce this bug?
https://github.com/swapnilsparsh/30DaysOfJavaScript/assets/114282267/d7976022-0662-4770-a21f-7b34b231bada
In this video, I have reproduced the bug, with an example, velocity 900m/s and angle 89 degrees.
Desktop Information (Optional)
Device: Laptop OS: Windows 11 Home Browser: Chrome
Urgency (Optional)
Medium priority
Record
- [x] I agree to follow this project's Code of Conduct
- [x] I'm a GSSOC'24 contributor
- [X] I want to work on this issue
@mondalsurojit Fix both the things
- Body is moving out of the screen.
- Reset button not working properly.
@swapnilsparsh sure sir...
@mondalsurojit Any update ?
@swapnilsparsh Within 4-5 days, I will be making a pr
@mondalsurojit Any updates ?