Hi Mathias,
Cheers for the info, I will take a look at osgBullet.

Thanks
Martin.


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mathias
Buhr
Sent: 08 June 2010 16:01
To: OpenSceneGraph Users
Subject: Re: [osg-users] physics and terrain

  Hi Martin,

I don't have an exact answer to your question but I've successfully 
integrated Bullet and OSG (currently only rigid bodies). Basically you 
just need two separate threads/worlds: rendering and physics simulation. 
An osg::NodeCallback retrieves the current MotionState from Bullet per 
frame and writes it to the osg::PositionAttitudeTransform of the 
graphical representation of that object. The tricky part is probably the 
calculation of appropriate collsion-shapes for given meshes.
Bullet provides a Demo application, where you can drive and use a 
ForkLift. It should give you a good starting point.

Cheers
Mathias Buhr



_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to