Last post for today! I promise!

This time I played around with Forces! But on a 2D plain! Using the fundamentals and laws of motion, I created this simulation of certain forces acting on the ball. Gravitational pull and some external force, lets say the wind! (The gravitational force was set to a small value, hence the slow downfall of the ball)

Heres how it works:

Initial velocity and acceleration of the object is 0. * Vector2.new(0,0)*.

The forces are incrementation vectors. Since * f = ma*. force will be

*. Or in other words*

`mass x acceleration`

*. I took mass to be 1 to prevent any bugs at first, so*

`acceleration = force/mass`

*! Now as you know velocity is the speed of the object, and acceleration is the rate of change in velocity. Hence,*

`acceleration = force`

*. I don’t take care of time and take it as 1 so the distance is*

`velocity = velocity + acceleration`

*, so the*

`velocity x 1`

*! This is how I used vectors in the simulation. I Read a few articles on this site! A brief explanation of how we can utilize vectors to simulate the nature! https://thecodingtrain.com/.*

`position of ball = position of ball + velocity`

Feedback and suggestions are appreciated!