got the speed working (yay) but the angular velocity that results is superrrr low, thus not creating any rotation after impact, wierd...

This commit is contained in:
Karma Riuk
2023-04-02 21:53:21 +02:00
parent 7dc54ddfe5
commit d0de911344
8 changed files with 390 additions and 52 deletions

View File

@ -11,7 +11,7 @@ CXXFLAGS=-Wall -g -O2 $(PROFILING_CFLAGS) $(GTK_CFLAGS)
LIBS=$(GTK_LIBS) -lm
PROGS=balls
OBJS=balls.o c_index.o game.o gravity.o spaceship.o main.o polygons.o polygon_generator.o
OBJS=balls.o c_index.o game.o gravity.o spaceship.o main.o polygons.o polygon_generator.o collisions.o
# dependencies (gcc -MM *.cc)
balls.o: balls.cc game.h balls.h vec2d.h gravity.h
@ -23,6 +23,7 @@ spaceship.o: spaceship.cc balls.h vec2d.h game.h
stats.o: stats.cc
polygons.o: polygons.cc polygons.h vec2d.h polygon_generator.h
polygon_generator.o: polygon_generator.cc polygon_generator.h
collisions.o: collisions.cc collisions.h vec2d.h
.PHONY: run