Hi!
I’m pretty sure someone has already asked that, but I couldn’t find it, sry. I’m also not completely sure if the whole problem is just a misunderstanding…
jMonkeyEngine uses floats to describe a position in scene. A float has a precicion of 7 digits. Now assume 1f = 1m ingame. When I now assume that a precition error of >1mm is visible (0,01), this would mean the maximum world’s size is 10km(Amount of objects is irrelevant cause my game dynamically unloads distant objects), and after that small objects would get precition errors. Which would be the ->best<- solution to solve this problem? (Or is this just a problem my mind is doing to me and wouldn’t happen at all?)
My actual solution would be that, say, at 7km a new “root” point is created and all objects get a new relative position. I’m not too sure if this would take too much ressources. Another idea I had would be moving the world instead of the character (the world moving under the camera and not the camera over the world), this would automatically resolve the problem when I use subroot points, but would’t this need much more resources as all geometry has to be position-updated every frame? Which would be the best solution?
Thanks!