Problem with JointCallback

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:

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.

betajaen

19-03-2008 10:38:13

I think your right. Looking at the 0.9 code, I can't see how it would work.

I'll fix/test it in Bleeding (which the change can be applied to 0.9)

sdl

19-03-2008 15:04:53

ok, so i'll be checking for the fix.

thanks for your atention.