public void SetPos(Vector3 pos) { planet = planetObj.GetComponent <GravitationalBody>(); if (planet) { GeoCoord.SetPosATL(transform, new LatLon(planet, pos.x, pos.y), pos.z + (ObjectHeightOffset / 2)); Debug.Log(transform.name + " placed at (" + pos.x + "," + pos.y + ")"); } else { Debug.LogWarning("No planet data provided!"); } }