+ provide access to 'root' collision shape, in case the original collision shape is temporarily replaced by a child collision shape.

+ added MultiMaterialDemo showing how to use the new btTriangleIndexVertexMaterialArray.
Thanks to Alex Silverman for this contribution!
This commit is contained in:
erwin.coumans
2008-07-10 22:19:30 +00:00
parent b66e5350d0
commit 1c0fa00bc7
16 changed files with 900 additions and 22 deletions

View File

@@ -0,0 +1,22 @@
#include "MultiMaterialDemo.h"
#include "GlutStuff.h"
#include "GlutStuff.h"
#include "GLDebugDrawer.h"
#include "btBulletDynamicsCommon.h"
GLDebugDrawer gDebugDrawer;
int main(int argc,char** argv)
{
MultiMaterialDemo* multiMaterialDemo = new MultiMaterialDemo();
multiMaterialDemo->initPhysics();
multiMaterialDemo->setCameraDistance(30.f);
multiMaterialDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer);
return glutmain(argc, argv,640,480,"Multimaterial Mesh Demo",multiMaterialDemo);
}