sdl
19-03-2008 05:25:30
I searched the forums and nobody seem to have used a JointCallback before so here is my question: can anybody post an example of how to implement a joint break callback? my implementation give me a compiler error.
Looking in the sources i found that in the definition of class JointCallback (file NxOgreJoint.h, line 64) says:
when (i think) it should be:
With this change my code compiles ok but anyways the callback never get called. So i'm stuck. I'm using NxOgre 0.9 but Bleeding seem to be similar.
Looking in the sources i found that in the definition of class JointCallback (file NxOgreJoint.h, line 64) says:
void (T::*mMethod)(Joint, NxReal, Actor*, Actor*);
when (i think) it should be:
void (T::*mMethod)(Joint*, NxReal, Actor*, Actor*);
With this change my code compiles ok but anyways the callback never get called. So i'm stuck. I'm using NxOgre 0.9 but Bleeding seem to be similar.