Problems calling the method setUserNotify

chp

07-04-2008 14:47:11

Hi,

I have problems calling the method ogre.physics.physx.setUserNotify. If I call the method like


nxUserNotifyWrapper = NxUserNotifyWrapper()
ogre.physics.physx.setUserNotify.setUserNotify(nxUserNotifyWrapper)


I get the following error message


Boost.Python.ArgumentError: Python argument types in
NxScene.setUserNotify(NxScene, NxUserNotifyWrapper)
did not match C++ signature:
setUserNotify(struct NxScene_wrapper {lvalue}, class NxUserNotify *)
setUserNotify(class NxScene {lvalue}, class NxUserNotify * callback)


The NxUserNotifyWrapper is implemented as shown below

class NxUserNotifyWrapper(ogre.physics.PhysX.NxUserNotify):
def __init__(self):
pass

def onJointBreak(self, breakingImpulse, brokenJoint):
pass


def onWake(self, actors, count):
pass

def onSleep(self, actors, count):
pass


It seems that the function needs a pointer as value, but how can I create a pointer in python.