i'm buiding on visual studio 2013
double presicion on x64
any one has an idea?
world creation code
Code: Select all
BroadPhase = new btDbvtBroadphase(); //bt32BitAxisSweep3(btVector3(-99999, -99999, -99999), btVector3(99999, 99999, 99999),MAX_PROXIES);//
btDefaultCollisionConstructionInfo cci = btDefaultCollisionConstructionInfo();
CollisionConfiguration = new btDefaultCollisionConfiguration(cci);
//CollisionConfiguration->m_defaultMaxCollisionAlgorithmPoolSize
Dispatcher = new btCollisionDispatcher(CollisionConfiguration);
Solver = new btSequentialImpulseConstraintSolver();
World = new btDiscreteDynamicsWorld(Dispatcher, BroadPhase, Solver, CollisionConfiguration);
rigid body creation code
Code: Select all
btCollisionShape* pShape;
pShape = new btSphereShape(0.5);
btTransform Transform;
Transform.setIdentity();
Transform.setOrigin(Position + Hull->getCenterOfMassPosition());
// Give it a default MotionState
btDefaultMotionState *MotionState = new btDefaultMotionState(Transform);
// Create the shape
// Add mass
btVector3 LocalInertia;
pShape->calculateLocalInertia(0.2f, LocalInertia);
// Create the rigid body object
myRigidBody = new btRigidBody(0.2f, MotionState, pShape, LocalInertia);
// Store a pointer to the irrlicht node so we can update it later
myRigidBody->setUserPointer((void *)this);
World->addCollisionObject(Object);