Is there anyway I could use Bullet Physics Engine (or any other engine) with Cal3D models?
In one of th examples I found in this forum for Bullet Engine in Irrlicht, it uses a function called
Code: Select all
CBulletPhysicsObject::GetTriangleMesh(scene::IMesh* pMesh)
However, the Cal3D node by Klasker is derived from ISceneNode*, and the vertices are drawn only in Render() function of the node, I think, and by using virtual void
Code: Select all
drawIndexedTriangleList(const S3DVertex* vertices,
u32 vertexCount, const u16* indexList, u32 triangleCount) = 0;
in the render() function. So, how do I get the mesh to be passed to GetTriangleMesh, in order to use the cal3d model for physics collisions in Bullet Engine? Is there a method by which I can get a mesh from the ISceneNode* or something? Or do I need to adopt a completely different approach?
Thanks.