You are browsing as a guest. Sign up (or log in) to start making projects!

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

Open comments for this post

1h 34m 10s logged

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

0
0
7
Open comments for this post

2h 15m 27s logged

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

0
0
19
Open comments for this post

1h 0m 43s logged

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.

0
0
5
Open comments for this post

3h 39m 59s logged

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.

0
0
3

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…