Sharing Irrlich vectors with Bullet
Posted: Tue Oct 27, 2009 5:44 pm
Hi,
I have 2 questions to people who might have experience with Irrlicht and the Bullet Physics Engine (http://www.bulletphysics.com/).
I am writing a game with some friends, where the user is driving a spaceship, which is displayed with irrlicht. Now, we decided to let the Bullet physics engine do the physics.
However, for that, we would need to copy the bullet's vectors (at least) each frame into the irrlicht mesh to update the vectors for irrlicht. That would be a lot of CPU work, since we'll have lots of complex spaceships.
Do you have an idea how to share the memory between Irrlicht and Bullet? Also, which subclass of btCollisionShape (http://www.bulletphysics.com/Bullet/Bul ... Shape.html) would you suggest to store the vertices in?
Greets,
Lo
I have 2 questions to people who might have experience with Irrlicht and the Bullet Physics Engine (http://www.bulletphysics.com/).
I am writing a game with some friends, where the user is driving a spaceship, which is displayed with irrlicht. Now, we decided to let the Bullet physics engine do the physics.
However, for that, we would need to copy the bullet's vectors (at least) each frame into the irrlicht mesh to update the vectors for irrlicht. That would be a lot of CPU work, since we'll have lots of complex spaceships.
Do you have an idea how to share the memory between Irrlicht and Bullet? Also, which subclass of btCollisionShape (http://www.bulletphysics.com/Bullet/Bul ... Shape.html) would you suggest to store the vertices in?
Greets,
Lo