So my game will have at least two gamestates: the game and editor. The problem is that each requires physics and therefore I need the main player character (the thing the user will be editing) to transfer between each gamestate's world.
Since the MPC consists of bodies and joints I can't think of doing anything except storing the structure of the character as some abstract data structure and recreating it when switching gamestates and updating it when physical parts change. Or possily I can just store all bodies/joints and use them as reference to rebuild the character (hence not having to worry about keeping a data structure up-to-date).
Is this the best I can do?
Best way to transfer physical objects between worlds?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Best way to transfer physical objects between worlds?
I would suggest simply using the same physics world. But otherwise yes, you must copy over the data.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 5 guests