This project will show you how gravity works and how it can be made in 5 minutes! In the project I have shown and explained how the actual code works - step by step and block by block. So what are you waiting for - go inside the project and feel free to experiment with the code or take it and place it in your own projects!
The YouTuder Viiperrr helped me with this - he has a video, explaining the same stuff. He also has a video, explaining how collisions work, if you want to make a step futher. Go ahead and check his channel - it's not bad! Also, if you have any questions for this code, don't be shy to ask me in the comments and if you have other suggestions for making something else, explaining it and showing how it works, do the same! Have a wonderfull day and if you liked this, why don't you leave a star or a heart, or even a follow! ;)