Physics Engine 2D banner

Physics Engine 2D

2 devlogs
9h 37m 5s

it’s a physics engine that can be used to make physics based games.

Travis

I added springs in my Engine, and it was surprisingly easy it was just increasing the speed of the two balls the spring connects towards each other by the distance between them and the spring’s strength

0
Travis

The first thing I did was making some balls bounce of walls by dot products and dot products are literally the most used thing in the entire code.
Then, I invented Gravity like that guy that an apple fall on his head which was a lot simpler than I expected, it was just decreasing the Y speed by a constant number and making sure it does it only if it’s actually above the ground.
I also made them bounce of other balls which was such a pain, and it doesn’t even work perfectly 😅, but it’s good enough.

0