MacMan45
05-02-2008 04:29:52
Can someone please help me try to understand how to use this?
I haven't been able to find any python examples that use this, and the docs only show the c++ signature.
Before I go too far, this is the correct way to apply a force / torque to a body in OgreNewt, right?
What I have so far is something like this:
I have tried it a few different ways, but it just keeps crashing.
The current error is:
'testClass' object has no attribute 'forceCallback()'
I have however defined a "forceCallback" method in the "testClass".
Ultimately I want to make an articulated limb and move it about (like a robotic arm).
if there are better ways to do this, I would really like to know!
I haven't been able to find any python examples that use this, and the docs only show the c++ signature.
Before I go too far, this is the correct way to apply a force / torque to a body in OgreNewt, right?
What I have so far is something like this:
self.mBody.setCustomForceAndTorqueCallback(self, 'forceCallback()')
I have tried it a few different ways, but it just keeps crashing.
The current error is:
'testClass' object has no attribute 'forceCallback()'
I have however defined a "forceCallback" method in the "testClass".
Ultimately I want to make an articulated limb and move it about (like a robotic arm).
if there are better ways to do this, I would really like to know!