2d image physics
Blitz3D Forums/Blitz3D Beginners Area/2d image physics
| ||
I normally would not be interested in 2d things, but I am teaching a class where some of the computers don't support 3d graphics. Soooooo, is there an easy way to implament physics into a 2d game? Like balls rolling down mountains, bouncing ect. |
| ||
This was an excellent community project with great physics.. http://www.blitzbasic.com/Community/posts.php?topic=33030 |
| ||
Take a look at the game "N", specifically the tutorials on the site. http://www.harveycartel.org/metanet/n.html The tutorials show a nice implementation of physics in 2D. This game uses flash, but all the concepts should cross over easily into blitz or anything else. Another thing to look into would be verlet physics,... I know there are examples around here although a quick look only turned up 3d examples. Everything works the same in 2D though, just dropping the z dimension. |
| ||
What does "verlet" mean? |
| ||
Do a search anywhere,.. you will find lots of hits. Basically, the way verlets work is by moving individual points, and then solving the positions using constraints several times per cycle. (the more iterations, the more accurate, with the downside being slower to process) The end result is that the points act as a single mass with physics applied. |