3D Physics with PV3D + WOW

Today I did a quick test to see how easy it is to get PV3D running with WOW (physics engine) and it is amazingly easy! The new Papervision BasicView combined with WOW is so easy to use. The tutorials on the WOW website helped a lot too.


See it in action: http://ansuz.nl/toys/physics3d/main_01.swf

What I built is a cube as world bounds and some spheres who will be dropped in the cube at a random position. Every 10 seconds I reset the spheres so you’ll have something to lookat continuously.
I first build the 3D world and then based on the names of the objects in the 3D world I create the objects for the physics engine. (I want to work this out a little bit further so you can easily convert any 3D world into a fully-animated-physics-enable-3D-world)

There is a link to the source code for this test included at the bottom. Please note that this is very quickly drafted code, not cleaned and/or optimized. Feel free to use it for your own. 🙂

Links:
WOW Engine
PV3D + WOW 1
PV3D + WOW 2
My source code