Code: Select all
obs:gotolonglat(parent, 0, math.rad(90.0), distance, 1.0, celestia:newvector(0,1,0))
obs:follow(parent)
This gotolonglat() command should go to a distance above the north pole of the parent, but instead goes all the way to the center of the parent and stays there.
Works fine in Celestia, but not within Lua Tools.
Anyone have any ideas on a workaround? The issue, I suspect, is probably due to the fact that the gotolonglat() is dealing with time as one of it's parameters (the 5th argument), and therefore may be fighting with the hook for control of the rendering cycle.