Bullet related

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

Bullet related

Post by roxaz »

I wanted to post this question in bullet forum but it seems that they have roblem with registration. Email for completing reg dont want to arrive so ill ask herel. when i try to create forst bullet objects with 'new' it breaks my program. everything compiles but when program is started it crashes. debuger says that program crashed in malloc.c in 163 line

Code: Select all

//  allocate memory block
res = _heap_alloc(size);        // 163 line
//  if successful allocation, return pointer to memory
//  if new handling turned off altogether, return NULL
to get program working i have to comment out all my bullet stuff

Code: Select all

btCollDisp   = new btCollisionDispatcher;
btBroadphase = new btSimpleBroadphase;  // A simple broadphase does a brute force check of O(n^2) on all aabb's.
btSolver      = new btSequentialImpulseConstraintSolver;
btWorld      = new btDiscreteDynamicsWorld(btCollDisp, btBroadphase, btSolver);  // Create a new environment to put our objects into.
anyone had similar problems? maybe anyone has ideas how to solve it?
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Post by Nadro »

You must add one value to "#defines". In Code::Blocks Build options->#defines and add "WIN32" value:)
GameDude
Posts: 498
Joined: Thu May 24, 2007 12:24 am

Post by GameDude »

Is there a tutorial on how to setup the bullet physics engine in Irrlicht
Post Reply