luahooks and the gotolonglat command
Posted: 08.11.2012, 14:04
I've struck a bit of an issue where I'm trying to execute the following commands within the context of Lua_Edu_Tools:
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.
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.