Moving mesh far away from 0,0,0: strange behavior

Hi there,
I am building some kind of rocket video game.
I experience some kind of strange behavior when initializing the position of meshes really far from the origin.
Here is a playground example of my problem: https://playground.babylonjs.com/#P2Z8DS#5
Moving the mesh cause some deflection. You can uncomment the origin definition at 0,0,0 to see the expected behavior.
I was expecting some kind of trouble when using large numbers but all things considered the number used (the earth radius in meters) isn’t that large.
Am I doing something wrong? Is placing some meshes far from zero a bad practice?
Best regards,

Hello and welcome!

I believe this section may help - Floating Origin (Huge Scenes Support) | Babylon.js Documentation

4 Likes