Combining python and c++

Hi everyone.

I have experience coding Panda3D in both python and c++ but am curious as to the particular method I could use to combine both languages in the creation of a single game. Has anyone done it before?

I would likely follow the recommendation of a book I’ve read and use c++ for a performance intensive portion of the game I’m planning.

Thanks!

Welcome to the forums!

That’s certainly possible, and it’s not uncommon to code a particular intensive feature as a C++ module and generating bindings to invoke it from Python code.

Panda3D provides a utility to generate Python wrappers around a C++ module, search the manual and forums for “interrogate”.

That’s the answer I was looking for, thanks!