Error Destroying World

Benjiro

06-10-2009 00:58:54

Hi Guys,

I'm having a problem when i call the World::DestroyWorld() function im getting a FeeFee error, i've tracked it down to this line of code


mBoneActorBind[mBonesCounter].mBoneActor->getNxActor()->userData = (void*)mBoneActorBind[mBonesCounter].mBoneActor;


I can't figure out why this code would be causing this problem but all i know is if i comment it out destroys physx world fine

Any Ideas?

spacegaier

11-10-2009 23:10:35

What excactly does your scene consist of? I tried it with an almost empty scene (just some OGRE3DBodies) and it worked fine...

betajaen

11-10-2009 23:18:11

userData is used by NxOgre to identify the RigidBody class. Next time NxOgre uses userData, it will cast it into a RigidBody based class, and cause a crash.