(on 3 Feb 2009)
Examples:
v0.001, Example: prelimary Proof-Of-Concept demonstrating how SceneNodes can be applied forces for relatively realistic physics-behaviour. In a simple way.
v0.002, Example 2: a simple "flying-peach" node controller. Move it around and make it "jump"
Screens:
A screenie: (doesn't do it justice, you can't see the motion involved)

Screenie from irrSimplePhysics Example 2 [v0.002]:

(beware the flying peach!

I created this for all those people using Irrlicht who want "some" basic physics going on, but don't want to go through the hassle of integrating a full-blown physics engine into their projects.
Allows any Irrlicht SceneNode to be treated with more realistic Physics behaviour, applying gravity, forces and velocities if the user wishes.
Its now just a simple class that you throw your SceneNode at and it handles all the maths. It has to be updated each frame though (see the source for more info).
Currently only handles basic linear Forces and Velocities (its possible to achieve some interesting effects like projectiles and force-fields accuratly enough).
Don't expect to see any Torques or Angular-Velocities anytime soon (far too complicated and demanding, just use a real physics-engine!).
Collision-detection is certainly an option though.
I forgot to mention in the README, but you should use "real-world" numbers for inputs (as you should all know by now):
- Mass = KG
- unit-dimensions / positions / scales = Metres
- Force = Newton (1 KG moving 1 M)
- Time = seconds
- Velocity = M/sec
(can I just add - this is by no means a replacement for ANY real physics-engine, and I'd recommend using a real one over this wherever possible)
Source and Example:
irrSimplePhysics v0.001: http://www.mediafire.com/?muwyzkftggk
irrSimplePhysics v0.002: http://www.mediafire.com/?mxyyy3tthhi (LATEST VERSION)
TODO:
- Simple SceneNode ANIMATOR too
- "simple" collision-response for Irrlicht collisions
Give it a whirl and see what you make of it.
Contributions, tips, opinions, criticisims, all welcome.
"may the farce be with you"
