Hello,
i try to compare a gameobject position x and z of two objects.
When i log myGameObject.transform.position the console return the real Vector3 of the object like this : (0.0, 2.5, 0.0)
So,
when i log myGameObject.transform.position.z the console doesn’t return the same float :
0.0f return -8.700782E-07
if i Log(position.x, position.y, position.z) unity console return something like this :
-9.602664E-07 2.503576 -8.700782E-07
How can i find the real Vector3 position.z ?
( in this context mygameobject instance is positioned on z at 0.0f )
And…
Do you know why position.z returns that value (-8.700782E-07) ?
Thanks and have a nice Day !