right now im trying to setup physics in blender to export to bullet.
I managed to get the file to export, but when i load in into my game, none of the rigid bodies are read...
here is the important code:
Code: Select all
btBulletWorldImporter* fileLoader = new btBulletWorldImporter(PhysicsWorld));
fileLoader->loadFile("CarperonColv2.bullet");
cout << "Rigid Bodies: " << fileLoader->getNumRigidBodies() << endl;//i used this to read how many rigidbodies are in the file, the result was always 0...
Code: Select all
import PhysicsConstraints;
PhysicsConstraints.exportBulletFile("CarperonColv2.bullet")
im wondering if im forgetting code that is needed to get the rigidbodies loaded...
I also have my .blend and .bullet files included if those are necessary