- Home /
Max Transform position
I'm working on an infinite generator, which actually works.
But I'm wondering,if there is a limit to the value at which we can set position.x, position.y and position.z of any transform?
tyvm
Answer by Graham-Dunnett · Feb 07, 2015 at 06:23 PM
There's no limit (well, there is, but it's huge). However, the larger the numbers get, the less accurate the values get.
As an added note, these floating point errors are not specific to Unity. For example, $$anonymous$$inecraft is also theoretically endless, but if you go an extreme distance from the world center, you will notice that the verticex positions of the vertices that make up the blocks stray from their ideal positions.
Answer by georgeq · Mar 07, 2016 at 10:06 PM
Theoretically no, however the further away you mesh is from the origin, the more distorted it is rendered, as you can see below:
A model located at 0,178,0 is rendered flawlessly
The same model located at: 0,178,22000 still looks good, but is not rendered correctly at certain angles, at this point your the model is rendered with some nasty black stripes on it. As you get further and further away the more notorious the distortion is. See how the same mode looks when located at: 0,178,2220000
It really looks bad, so perhaps it is a good idea to redefine what we understand by "infinite" when using Unity to render a scene.
Your answer
Follow this Question
Related Questions
numerous errors with super basic door transform 1 Answer
What is "transform" here? Is it an object of "Transform" class?Why is it in lower case? 1 Answer
How can I get unique identifier IOS in unity? 2 Answers
Camera Orbiting Character: How to make an object move with another with no rotation 1 Answer