Is this a glitch within Unity itself or am I crazy? This simple code prints out the XYZ location of the player:
var Player : GameObject;
function Start () {
Player = GameObject.Find("My Player");
}
function Update () {
Print(Player.transform.position);
}
In this code, “My Player” is simply the default Unity FPS controller character. When I run this, I keep my player character still. The X and Z values remain unchanged like I expect, but the Y value fluctuates randomly!
Why would that be? My character is not moving at all!
This is driving me mad! Any ideas?