i just finished a simple collision detection code, added it to the game, now the core of the game is finished, but the core still need to be improved and optimized.
the simple collision code is using the four vertices of the quad(the car), calculate each vertex's coordinate and see if it's in the range of the wall coordinates.
it's not accurate because it only use four vertices.
I need to read some articles on collision detection to improve this.
secondly, the bouncing effect is awful, i didn't use momentum and normals of surfaces, i just used a very stupid : speed=(-speed)/3;
this part can be hugely improved.
I feel happy that this is actually my very first project, very first test version, the first completed program!!
still a long way to go, carry on!
------------------------------------------------------------------
alpha version feature:
2D texture
tiling technic in generating the map
full screen,window option
semi-complete control system: thrust, break, handbreak
scrolling map (it's done using opengl's benifit)
ScreenShot:

the simple collision code is using the four vertices of the quad(the car), calculate each vertex's coordinate and see if it's in the range of the wall coordinates.
it's not accurate because it only use four vertices.
I need to read some articles on collision detection to improve this.
secondly, the bouncing effect is awful, i didn't use momentum and normals of surfaces, i just used a very stupid : speed=(-speed)/3;
this part can be hugely improved.
I feel happy that this is actually my very first project, very first test version, the first completed program!!
still a long way to go, carry on!
------------------------------------------------------------------
alpha version feature:
2D texture
tiling technic in generating the map
full screen,window option
semi-complete control system: thrust, break, handbreak
scrolling map (it's done using opengl's benifit)
ScreenShot:

Leave a comment