ellipsoid collision and response using Bullet physics engine

Please don't post Bullet support questions here, use the above forums instead.
cebugdev
Posts: 15
Joined: Fri Nov 19, 2010 8:58 am

ellipsoid collision and response using Bullet physics engine

Post by cebugdev »

Hi,

We have implemented our own collision and response system using ellipsoid with the tutorials from
http://www.peroxide.dk/download/tutoria ... tut10.html

but the management decided to use 3rd party library instead because of many advantages instead of rewriting what has already implemented by various developers. People recommend me to take a look at Bullet Physics engine because it is becoming popular. I also read from Wikipedia that Bullet physics engine was used on the last GTA game, our game is similar to GTA and makes us more interested in using Bullet physics engine.

My question is, how can we adapt ellipsoid collision and response algorithm with bullet's engine collision API?
what we are doing now is like this (in pseudocode):

Code: Select all

Actor::Update()
{
...
 PerformCollision( pVertices, currentPosition, currentVelocity * elapsed, &outPosition, &outVelocity, ellipsoidRadius);

currentPosition = outPosition + outVelocity;
outVelocity -= friction;
...
}
inside PerformCollision functions performs collision and response test for each face of the scene.

Code: Select all

PerformCollision()
{
   //convert in ellipsoid space
   foreach face in the mesh
   {
       //convert face to ellipsoid space
       //....
       CheckCollide( );
    }
   PerformResponseSlide()
   //set new position
   //set new velocity
}
How can we do this using Bullet physics engine?
Please help us

thanks,