This is a simple question. How do I get string data out of a PxStringTable. How do I use the PxStringTable. Please can someone help me with this, its such a simple question someone must know how.
Thanks,
David
This is a simple question. How do I get string data out of a PxStringTable. How do I use the PxStringTable. Please can someone help me with this, its such a simple question someone must know how.
Thanks,
David
mStringTable = &PxStringTableExt::createStringTable( getFoundation().getAllocator() );
PxDefaultFileInputData data(getFilename("file.repx"));
RepXCollection* collection = createCollection(data, getFoundation().getAllocator());
addObjectsToScene(*collection, physics, getFramework().getCooking(), scene, mStringTable);
collection->destroy();
PxActor* actors[512];
scene.getActors(PxActorTypeSelectionFlag::eRIGID_DYNAMIC, &actors[0],512);
PxU32 nbActors = scene.getNbActors(PxActorTypeSelectionFlag::eRIGID_DYNAMIC);
for (PxU32 i =0; i < nbActors; i++)
{
actors[i]->getName();
}