Hi Martin,
sorry for the misunderstanding but I have no experience with osgBullet.
I've done the integration by myself. I'm sure there are more efficient
ways to integrate Bullet :)
Best regards
Mathias
On 08.06.2010 19:39, Martin Naylor wrote:
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
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org