30DaysOfJavaScript icon indicating copy to clipboard operation
30DaysOfJavaScript copied to clipboard

[Bug]: Reset button is not working in Projectile Motion Simulator (89) for several cases

Open mondalsurojit opened this issue 1 year ago • 5 comments

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 avatar Jun 02 '24 20:06 mondalsurojit

@mondalsurojit Fix both the things

  1. Body is moving out of the screen.
  2. Reset button not working properly.

swapnilsparsh avatar Jun 06 '24 19:06 swapnilsparsh

@swapnilsparsh sure sir...

mondalsurojit avatar Jun 06 '24 20:06 mondalsurojit

@mondalsurojit Any update ?

swapnilsparsh avatar Jun 14 '24 14:06 swapnilsparsh

@swapnilsparsh Within 4-5 days, I will be making a pr

mondalsurojit avatar Jun 15 '24 06:06 mondalsurojit

@mondalsurojit Any updates ?

swapnilsparsh avatar Jun 21 '24 14:06 swapnilsparsh