Newbie question about system coordinates: transpose origin

Hello, how can I reset dinamically the axes origin of the scene?



E.G. I place a cube at (0,0,1), then I move the cube onto (0,0,9999). Here I need to reset the position of the cube as it was (0,0,0), not translating or moving the cube but transposing the starting origin of the scene to the current position of the cube. Is it possible?  :?  :?

If you're not translating the cube, then you gotta translate everything else, right?

So, in pseudocode:


translation = cube.position.negate()
cube.position = (0,0,0)
for (every entity in scene){
     if (entity != cube){
         entity.translate(translation)
     }
}

Momoko_Fan said:

If you're not translating the cube, then you gotta translate everything else, right?
So, in pseudocode:

translation = cube.position.negate()
cube.position = (0,0,0)
for (every entity in scene){
     if (entity != cube){
         entity.translate(translation)
     }
}




Thanks, it sounds well with the scene sliding accuracy problem I encountered last night :mrgreen:

but unfortunately I need to move only the scene node... furthermore when I reach some limit (E.G movement set to 0.01 distance 50,000.00), math accuracy looses any movement...  :|