Hello,
I’m not sure this is possible within Ork, but I thought I’d ask. I’m using a floating origin solution for my game. This introduces some challenges with the loading of a save game as the vector won’t be correct for the position of the game world. I need a way of storing the correct location so I can call it and move the player. One potential way I thought of doing is to somehow get and store the vector of the player relative to a reference object that moves with the rest of the level. For example, I have an empty object placed at 0,0,0 can I somehow get the vector position of the player relative to that object rather than the current position of the player. As the empty object will move with the scene this would in theory give me the correct position to respawn my player. Is that possible?
For loading, you can also use a global event - using the Scene event type and Load Game scene change type. Here you can get the position out of the global Vector3 variable and restore the position.
Alternatively, you can also use custom save data, e.g. via custom component save data (component on the combatant's game object) or general custom save data.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!