Hey guys, I’ve got a question about how to best connect Panda3D objects with objects I’ve written myself.
I’m writing a library to handle logic and infrastructure for my game world. I’m now at a point where I need to connect Panda3D to my world engine, if you can call it that (still early development). Say I have a class Person(). What’s the best way to link a Panda3D Actor to a Person() instance?
I thought I remembered there being some extra field in PandaNode or Actor (or somewhere) that you could use for whatever you want, but I can’t seem to find it in the manual. The best thing would be if I can have a direct link so I can call something like pandaActor.getPerson() or pandaActor.extraField or whatever.
If that’s not possible, what is the recommended way to handle this (if there is one)? I’ve thought of a few workarounds, but a direct link would be optimal.
I’m also just curious how other people deal with this. It must be a common issue, right?