On 2010-09-13 21:21, David Antonio Castro MartÃnez wrote: > Hello, > > I've been reading past lists and it looks like someone was able to use > bullet physics with OpenSG. > > http://bulletphysics.org/wordpress/ > > I would appreciate if they could share an example of how it is done.
I haven't an example at hand at the moment, but I've only used it for collision detection, i.e. feeding positions from OpenSG to Bullet. This is easily done by updating the world transform of a bullet object (setWorldTransform()) with the world transform of an openSG node (getToWorld()). IIRC, both use the same matrix format. But you'd best double check that. I used a simple OpenGLDebugDrawer for bullet (in a separate window not used OpenSG, but raw OpenGL) just to check that Bullet had the same idea of the world as OpenSG did. It helped quite a bit in tracking down some simple mistakes. Cheers, /Marcus ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
