PySim
- 4 Devlogs
- 9 Total hours
A physics simulator built in python and pygame ce, all physics code is written from scratch, pygame only used to display graphics and GUI
A physics simulator built in python and pygame ce, all physics code is written from scratch, pygame only used to display graphics and GUI
Fixed the bug, took a little longer than i originally thought but also fixed some other things. add some usefull debug features. Anyway collisions for circles is done and pretty fun to play around with
Lot of work done today, and even more headaches. Changed Particle class to a ball class (still called particle tho). Balls have collision with walls and floor AND with eachother. The white board is for actually understanding the maths. There is a bug and I know what it is, but I need to sleep
Realised I messed up by diving straight into displaying squares, made a new gameplan and basically started from scratch. I added a Vector class to make the math easier to write later, and a particle class to make a single particle bounce off the floor.
Learned the basics of pygame, and started work. Firstly, I found out that the pygame.Rect() function is pretty much only usefull for buttons in my use case, so i made a class to create four points around a centre point, and using some basic trig, got a square showing up that allowed for a lot more freedom that pygame.Rect(). I added gravity and am now working on collisions.