Transfer Velocity From Kinematic Mesh Object

lawrencebullet
Posts: 1
Joined: Fri Apr 22, 2011 7:56 pm

Transfer Velocity From Kinematic Mesh Object

Post by lawrencebullet »

Hello:
I was wondering if anyone had any suggestions. I have an character that I've animated in Maya and brought into the simulation as a kinematic btBvhTriangleMeshShape. All of the rigid bodies collide with it, but there doesn't seem to be a way to take into account the velocities on the mesh when doing the collision calculations. It looks like there have been suggestions to use a btMotionState derived class for kinematic mesh objects in general, but that seems to apply a single value for the entire mesh, so if the hands are going in a different direction as the feet, and both are colliding with different rigid bodies, it's not clear what values to use. I can precompute the velocities at all the points on the mesh beforehand, I'm just not sure if there's a way to apply them when things collide with it. I also tried using a btGImpactMesh shape but got similar results. Any suggestions would be very much appreciated! Thanks!
Lawrence