CmonGirl
13-10-2010 14:55:41
Hi all,
I cant delete class from extented nxogre class. For example : mTimeController
NxOgre::TimeController* mTimeController;
....
NxOgre_Delete(mTimeController);
mTimeController = NULL;
bump. compile error.
error C2248: 'NxOgre::TimeController::~TimeController' : cannot access protected member declared in class 'NxOgre::TimeController'
I tried delete,free and nxogre_deletet but dont compile
Heeeelp
betajaen
13-10-2010 15:04:11
Don't? It's not yours to delete.
CmonGirl
13-10-2010 15:13:10
well how can i delete this ?
betajaen
13-10-2010 15:18:57
You don't.
If the destructor is private/protected, it isn't yours to delete. Something else will delete it for you; World most likely.
CmonGirl
13-10-2010 15:24:38
last One more question.
How can delete SceneGeomtry? I created scene geometry that:
TMesh = NxOgre::MeshManager::getSingleton()->load(PhysicsName);
TGeometry = NULL;
TGeometry = new NxOgre::TriangleGeometry(TMesh);
mPhysicsScene->createSceneGeometry(TGeometry,NxOgre::Matrix44(InitialPosition));
But i dont know how delete. Help me beta. How can i do?
CmonGirl
13-10-2010 16:32:51
I study nxogrescenegeo.h and find this lines:
/** \internal Use Scene::destroySceneGeometry
*/
virtual ~SceneGeometry(void);
But has not destroySceneGeometry fucnction inside nxogrescene.h. i use 1.5.5 version. Help
betajaen
13-10-2010 16:50:26
1. Use Detritus. It is a year ahead in code, and I do not help people use out-dated inferior code.
2. You CANNOT delete SceneGeometries. It is a static RigidBody, that can never be moved or deleted.
PLEASE read the PhysX Documentation, and the Documentation of NxOgre. There are spacegaiers tutorials and my nxogre tutorials, as well as the PhysX lessons.
CmonGirl
14-10-2010 06:37:15
I download detritus and compile. But project linked PhysXLoader.lib PhysXCooking.lib libraries Is it for PhysX SDK 2.8.4.2? True? I have PhysX_2.8.1_SDK.
jarwulf
15-10-2010 08:45:14
I download detritus and compile. But project linked PhysXLoader.lib PhysXCooking.lib libraries Is it for PhysX SDK 2.8.4.2? True? I have PhysX_2.8.1_SDK.
If I understand your question correctly PhysX suddenly switched the names of several of its files from NxCooking to PhysXcooking for example so you may to make the necessary adjustments to your project settings or rename the files depending upon how new your sdk is.