I have exported a simple scene witch features a piece of geometry that falls on top of another.
(i have used the create rigid bodies, shrink shapes, and prune types-with everything selected,
write to platform and preview scene filters)
In preview the scene looks at it is supposed;
I then load in code this file using
hkRootLevelContainer *myContainer = myLoader.load("file.hkx");
Ho will I access the rigid bodies in order to add them to the world?
I have tried using a pointer:
void * myPointer = myContainer->findObjectByName("RigidBody");
hkpRigidBody *myBody = (hkpRigidBody*) &myPointer;
but the program crashes on physicsWorld->addEntity(RigidBody);
Using rigid bodies from *.hkx