bullet setdata [SOLVED]


Is it possible to do as for ode, to set data to a “body”?

In collision, I can retrieve my object instance directly from my body, and it was very efficient on ode.

Thank you

Bullet is tightly integrated with Panda3D. BulletRigidbodyNode (and other classes ending with “Node”) are derived from PandaNode. This means that you can use methods from PandaNode, e. g. setPos(x,y,z).

You might want to read the API docs for these two methods: PandaNode.setPythonTag(k, v) and PandaNode.getPythonTag(k).

I am happy.