This week I had a real motivation drive and ported most of the Opal sources to C#. What’s not yet working are joints and sensors, because my primary motivation had been to get the “simple” example from the samples folder to work. And so I did.

Oh well, it’s not like it is perfect. Imaging dropping a coin upright on a table. It would probably tumble and come to rest on its flat side. Not so in my example! Even if you dropped it so it landed on its flat side, it would magically roll around and come to rest in an upright position.
And boxes, oh, well, they land, come to rest, then start shaking like crazy only to launch themselfes skywards like grasshoppers soon after. Not really realistic, if you ask me…
I don’t really know anything about the complex math involved with physics, so if someone has an idea why this is happening (I have yet to check out if the original Opal library and native Ode do the same) and can give me any clues I’d be very grateful
In case you want to try it for yourself, you can download a binary below. The example requires the absolute latest and greatest version of managed DirectX to run. Anything earlier than MDX 2.0 from DirectX 9.0c in the April 2006 release won’t do, sorry.
Download Opal .NET example application
Press the space bar to make a random object drop from the sky!
October 4th, 2006 at 3:42 pm
we have a fully ported OPAL to C#. it uses XNA fw.