- CcdPhysicsDemo also uses Generic6DofConstraint (testing with mouse picking).

- HingeConstraint back to old method by default (comparison)
- FCollada by default in ColladaDemo
This commit is contained in:
ejcoumans
2006-06-14 02:51:47 +00:00
parent 0ce46e150d
commit 3c6993e45e
3 changed files with 40 additions and 33 deletions

View File

@@ -47,7 +47,7 @@ extern int gForwardAxis;
#include "GLDebugDrawer.h"
//either FCollada or COLLADA_DOM
//#define USE_FCOLLADA 1
#define USE_FCOLLADA 1
#ifdef USE_FCOLLADA
//Collada Physics test
@@ -1088,6 +1088,23 @@ int main(int argc,char** argv)
if (geom->getConvex_mesh())
{
{
const domConvex_meshRef convexRef = geom->getConvex_mesh();
daeElementRef otherElemRef = convexRef->getConvex_hull_of().getElement();
if ( otherElemRef != NULL )
{
domGeometryRef linkedGeom = *(domGeometryRef*)&otherElemRef;
printf( "otherLinked\n");
} else
{
printf("convexMesh polyCount = %i\n",convexRef->getPolygons_array().getCount());
printf("convexMesh triCount = %i\n",convexRef->getTriangles_array().getCount());
}
}
ConvexHullShape* convexHullShape = new ConvexHullShape(0,0);
//it is quite a trick to get to the vertices, using Collada.