- 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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user