Tutorials


Current series: Basic physics
(Return to list of tutorial series)

Covers some basic physics problems, like ball rebouncing. More on later.


Date: 02.10.2007

This program shows you how to detect and react on collision of two spheres and sphere collision with world. This is the first part, I plan to create also second part later, which will cover some errors (try to throw balls into that small box and you will see).

I used my library mgbsoft.lib, which includes some basic 3D math functions, OpenGL basecode, toggling fullscreen and changing resolutions (but I'm not sure if it works properly everywhere) and so on. So if you want to compile code, you must add mgbsoft.lib (and also freetype.lib) to your compiler library directory. They are included with source code.


Read here
Download (869 KB)
1844 downloads. 0 comments

Number of entries:

This webpage has been visited 673103 times since 29.01.2009.
Currently there are 22 people viewing this page.