I'm new on it, I try to write a little script, but it has a bug
I'd like the next:
1- camera is go to the Earth's lon/lat position
2- looking the horizon (I dont find better than gotosurface, but it is always going 637.81 m and I'd like to lower to 70m)
3- and lower to 70m above the surface (about)
It's all working, but the last operation is rotate the camera to the center of Earth.
I tryed swap 2 and 3 steps, but then the camera is go 637.81 m
This is my script:
Code: Select all
EARTH = celestia:find("Earth")
celestia:select(EARTH)
obs = celestia:getobserver()
obs:gotolonglat(EARTH, math.rad(20.13), math.rad(46.25),8000 , 3)
obs:synchronous()
wait(3)
celestia:flash("Szeged, Hungary")
wait(3)
-- seeing the horizon
obs:gotosurface(EARTH,1)
wait(3)
-- lowering about 70m to surface
obs:gotodistance(EARTH, 6378.2103, 2)
pls hlp what is the right solution??