Using refmarktable
Posted: 09.12.2009, 01:19
I've created the following script of the moon orbiting the earth, with an arrow pointed from the moon to the sun and another arrow pointing at the earth.
The trouble is the arrows keep disappearing and reappearing as the moon orbits the earth.
Does anyone have a solution for this?
Sean
Code: Select all
CEL([[{seturl {url "cel://Follow/Sol:Earth/2009-12-09T01:10:12.12924?x=ACHVcPwO5xk&y=AMwjfa0pFGg&z=oJD+b4ze8wI&ow=0.146371&ox=0.281612&oy=0.671824&oz=0.66927&fov=25&ts=1<d=0&p=0&rf=268211&lm=0&tsrc=0&ver=3" }}]])
celestia:setambient(0.0)
celestia:settimescale(180000)
refmarktable={}
refmarktable.type="sun direction"
refmarktable.size = 250000
moon=celestia:find("Sol/Earth/Moon")
moon:addreferencemark(refmarktable)
wait(11.0)
refmarktable.type="body to body direction"
earth=celestia:find("Sol/Earth")
refmarktable.target=earth
refmarktable.size = 250000
moon:addreferencemark(refmarktable)
celestia:settimescale(180000)
wait(14.0)
-- refmarktable.type="sun direction"
-- moon:removereferencemark(refmarktable.type)
-- refmarktable.type="body to body direction"
-- moon:removereferencemark(refmarktable.type)
The trouble is the arrows keep disappearing and reappearing as the moon orbits the earth.
Does anyone have a solution for this?
Sean