When did babylonjs start using the shifting method described in deep dive doc on floating_origin?

When I first saw the floating origin article, authored by “immerso”, I do not recall seeing this part:

[code] ```
// Create the OriginCameralet camera = new OriginCamera(“camera”, new BABYLON.Vector3(10000000, 0, 10000500), scene);camera.doubletgt = new BABYLON.Vector3(10000000, 0, 10000000);

or a description like this
[quote]
On a solar system, we have an asteroid located at (10000000, 0, 10000000). Our camera is close to the asteroid, at (10000000, 0, 10000500).

... we subtract camera double position from the object double position and then set the object real position at that offset, keeping the camera always at (0, 0, 0):[/quote]
has it all changed?

OriginCamera looks like it was contributed in Apr 2022 by the author of that thread.

This was already in when you reviewed the article at this point Would the author of floating origin blog please contact me? - #21 by cosmochristo

Any particular part you need more history and/or changes about ?

Thanks @sebavan and @HiGreg , I think there needs to be a little clarification on differences. I will spend some time next week to provide the clarifications.

1 Like