I'm having problems with exporting .bullet files from blender because although the wiki says it exports name I cant figure out how to access these names. I assumed the names meant whatever I designated the object as in blender and that the names would directly become the user pointers of the object.
This is my code that I am using to test it:
Code: Select all
irrSetUp* worldIrr;
void World::update(){
for (int i = 0; i < dynamicsWorld->getCollisionObjectArray().size(); i++){
worldIrr->log((char*)(btCollisionObject*)dynamicsWorld->getCollisionObjectArray()[i]->getUserPointer());
}
dynamicsWorld->stepSimulation(1 / 60.f, 10);
}
My output is just a bunch of spaces which I assume means that the userPointer is unfilled. How do I get blender to ezport the names of my objects to userPointers.
I am using irrLicht's ILogger class to output the information into my console.