Hi,
I have a transform position that I want to copy and adjust. If I copy the position it works fine, however after some testing i’m getting some very strange results.
e.g
List transtest
transtest[0].position = flanguage.transform.position;
this works fine and I get a position that matches that of the flanguage position (0,0,0.
However if I add the following:
transtest[0].position = new Vector3(flanguage.transform.position.x + 1f, flanguage.transform.position.y, flanguage.transform.position.z);
or
transtest[0].position = new Vector3(flanguage.transform.position.x - 1f, flanguage.transform.position.y, flanguage.transform.position.z);
I get the y and z that match flanguage z and y position but the x position becomes (-3.21,0,0) for both those lines of code.
Can anyone suggest what error is occuring?
Cheers.