added first draft of C-API, btConvexHullShape takes float* instead of btPoint*, added getGravity to btRigidBody

This commit is contained in:
ejcoumans
2006-10-11 06:07:14 +00:00
parent 919e8def68
commit a337372905
13 changed files with 350 additions and 12 deletions

View File

@@ -114,7 +114,7 @@ void Raytracer::initPhysics()
};
// btMultiSphereShape* multiSphereShape = new btMultiSphereShape(inertiaHalfExtents,positions,radi,NUM_SPHERES);
btConvexHullShape* convexHullShape = new btConvexHullShape(positions,3);
btConvexHullShape* convexHullShape = new btConvexHullShape(&positions[0].getX(),3);
//choose shape