Commit Graph

18 Commits

Author SHA1 Message Date
Karma Riuk
89e250dcba Removed the passing of the mass through parameters. Now the mass is
determined by the area of the polygon
2023-05-19 16:31:38 +02:00
Karma Riuk
a424fec9a9 Now when polygons collide, they get moved by the overlap to ensure that
they don't get stuck in the following frames, it works very well and
Carza is happy :))))))
2023-05-19 15:24:11 +02:00
Karma Riuk
92e51a96be Added the destroy method for the polygons 2023-05-19 10:18:49 +02:00
Karma Riuk
697d958bbf Added the commandline argument to enable polygons 2023-05-18 11:23:31 +02:00
Karma Riuk
a774b8d517 Removed a lot of useless fluff 2023-05-17 15:40:55 +02:00
Karma Riuk
deeb237f45 Added a more complex starting setting 2023-05-17 15:38:05 +02:00
Karma Riuk
40dde35f19 Added restitution coefficient control (introduced a lot of unwanted
behaviour, but fixable)
2023-05-17 13:38:46 +02:00
Karma Riuk
a6c4771d1a Added gravity to polygons 2023-05-17 13:33:07 +02:00
Karma Riuk
487b5fe00b Fixed most of the bugs of the collision detection (still some cases
there)
2023-05-17 13:22:34 +02:00
Karma Riuk
2cfa921547 Added a general polygon to the initial state 2023-05-06 14:06:45 +02:00
Karma Riuk
6b049eb831 Added new polygons in polygons_init_state() and now drawing the point of
impact and the normal vector in that point
2023-04-25 12:05:39 +02:00
Karma Riuk
1c58530e98 Now the borders of the windows are walls of infinite mass 2023-04-10 14:40:16 +02:00
Karma Riuk
d0de911344 got the speed working (yay) but the angular velocity that results is superrrr low, thus not creating any rotation after impact, wierd... 2023-04-02 21:53:21 +02:00
Karma Riuk
4d14f2a30b Added wall bouncing logic (flawed); added bounding box computation and display 2023-03-25 10:57:32 +01:00
Karma Riuk
d6bf526459 Generator now makes the polygons origin at their center of mass, easier for rotation 2023-03-20 15:33:35 +01:00
Karma Riuk
e6a3979de1 Added a generator for polygons to make the init easier 2023-03-14 23:10:31 +01:00
Karma Riuk
37198d4669 fixed implementaion mistake 2023-03-14 22:00:55 +01:00
Karma Riuk
9fd87b7f29 Simple implementation of polygons, you can create them in the init and draw them 2023-03-14 21:46:36 +01:00