- Home /
How to enable each 3D object to run an instance of python based code
I'm working on a decentralized logic-based project and have written all the logic in Python. I want to introduce a visual aspect and build a simulation in Unity. The basic concept is that each object, let it be a sprite, 3d sphere, 3d cube, etc., has a copy of the logic code. They will then communicate with each other to accomplish a task, however, there is no centralized server to store information, but instead, each object will store information about itself and its neighbors, hence the decentralization. I currently have all my logic written in Python, but it looks like Unity uses C#. The way I see it is that Python logic is the business logic layer of the application and Unity is the front-end.
Is it possible to run my Python code in Unity?
Can each object have a copy of that code to execute on?
Your answer
