Irrlicht/Bullet demo! - now with the source code

Show what you made with Bullet Physics SDK: Games, Demos, Integrations with a graphics engine, modeler or any other application
killsto
Posts: 10
Joined: Mon Mar 30, 2009 2:54 am

Irrlicht/Bullet demo! - now with the source code

Post by killsto »

I made a simple demo with Irrlicht and Bullet. There is an invisible floor because I never visually added it and I want to move on to my new project.

Code: Select all

Controls
Arrow keys to move
Left click to shoot a cube
Backspace to add tower. The towers change their X position every time they are made so they do not spawn inside each other.  
'N'  prints the amount of cubes in the world
Mouse to look
If you don't have the irrlicht.dll:
http://www.mediafire.com/file/mcqffyizjzz/Irrlicht.dll

The demo:
http://www.mediafire.com/file/z5dizwmte ... etdemo.exe

I have not posted the code because it is sloppy and I do not want to cause problems for new coders.

However, I would be glad to help anybody who wants it. Feel free to ask how something works.

If enough people want it, I will tidy the source and post it.

Edit:
Here is the source because I had a couple of requests and was bored today.
http://www.mediafire.com/file/yjwmyitmi ... etdemo.zip

I tried to point out most things that should not be done, but I forgot one. The collision shape for the boxes only needs to be created once and probably should be passed to the objectwithnode constructor.

I've added the dependencies (irrlicht, bullet) so it should compile right away.


Sorry Linux users. I love Liux too, but it isn't agreeing with my graphics card so I only supplied a VS solution.