I get some slight errors when instantiating a prefab to a place defined by myGO. myGo is placed in my scene and has rotation x=270.
GameObject go = Instantiate(somePrefab, myGO.transform.position, myGO.transform.rotation) as GameObject;
print(go.transform.forward.z);
this prints: -1.192093E-07
Thats pretty close to zero so why should I care? …because moving the new instantiated object around, without touching its z coordinate gives me slowly slowly more and more error to a point where its to far from z=0.
Why is this so, and how can I fix it without manually putting transform.position.z=0 each frame, which i find not very optimized…