I’m setting up a test environment for some new stuff I’m working on and I’ve run into an issue that’s stumping me.
I’m doing something almost identical to some existing code I’ve done previously but this time it’s not working. The big change is that I’m working with modo for the first time, so maybe that’s the area where I have a problem.
OK… the problem:
I have this little test area set up with the “TestLevel” FBX exported from modo.
I have another Unity sphere in the scene to which I’ve attached a script that just does the following:
gameObject.transform.position = GameObject.Find("Spawn1").transform.position;
This is in Start().
When I run the game, I’m expecting my Sphere (pretend Player) to move immediately to the spawn point (white sphere on the left).
The Sphere does move, but to a location quite distant to the spawn point. I’ve also tried localPosition in case I was misunderstanding that. In that case, it moves to a completely different - but still incorrect - position.
So… does anyone know why it might happen? Is it Unity, or maybe something in the way I’m exporting the modo scene?