At the moment I'm just trying to get a simple example going.
I've followed all the installation instructions, and believe everything is set-up OK. Indeed, the following code compiles OK (taken from an Hello World example):
Code: Select all
#include "btBulletDynamicsCommon.h"
///collision configuration contains default setup for memory, collision setup. Advanced users can create their own configuration.
btDefaultCollisionConfiguration* collisionConfiguration = new btDefaultCollisionConfiguration();
///use the default collision dispatcher. For parallel processing you can use a diffent dispatcher (see Extras/BulletMultiThreaded)
btCollisionDispatcher* dispatcher = new btCollisionDispatcher(collisionConfiguration);
///the maximum size of the collision world. Make sure objects stay within these boundaries
///Don't make the world AABB size too large, it will harm simulation quality and performance
btVector3 worldAabbMin(-10000,-10000,-10000);
btVector3 worldAabbMax(10000,10000,10000);
int maxProxies = 1024;
btAxisSweep3* overlappingPairCache = new btAxisSweep3(worldAabbMin,worldAabbMax,maxProxies);
///the default constraint solver. For parallel processing you can use a different solver (see Extras/BulletMultiThreaded)
btSequentialImpulseConstraintSolver* solver = new btSequentialImpulseConstraintSolver;
btDiscreteDynamicsWorld* dynamicsWorld = new btDiscreteDynamicsWorld(dispatcher,overlappingPairCache,solver,collisionConfiguration);
Code: Select all
dynamicsWorld->setGravity(btVector3(0,-10,0));
I then get 5-6 similar errors further down./Users/si/Desktop/b3d/Classes/AppDelegate.mm:40: error: expected constructor, destructor, or type conversion before '->' token
I can't fathom why I'm getting these errors. It looks as if should work. I've set up the header paths, I'm linking with the relevent .a libs, and the source code looks fine.
The example project works OK.
I'm using Xcode 3.12, and the iPhone SDK 2.2.
Any help much, much appreciated.