Page 1 of 1

luahooks and the gotolonglat command

Posted: 08.11.2012, 14:04
by Chuft-Captain
I've struck a bit of an issue where I'm trying to execute the following commands within the context of Lua_Edu_Tools:

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.

Re: luahooks and the gotolonglat command

Posted: 08.11.2012, 15:24
by jogad
Works perfect for me :lol:
Probably, the distance value is zero.
The distance is the distance in km from the center of the body.

If it doesn't work for you, please provide an example with the actual values used.

Re: luahooks and the gotolonglat command

Posted: 09.11.2012, 23:15
by Chuft-Captain
OK,

Not a bug in Celestia 1.6.1.
Turns out that this is only a problem in the special celestia-v1_7x-svn5213 builds provided by Abramson.
Thanks for your test Jogad.

CC