Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-03-28 23:35:41



Reply to topic  [ 5 posts ] 
Lua TeleportAgentToPos() 
Author Message

Joined: 2016-06-19 21:33:37
Posts: 337
Location: Columbus area, OH, USA
Reply with quote
I have noticed something when using TeleportAgentToPos() in a Lua automation script. It seems that the z value cannot be all that 'large'. I have tried to use the function to teleport to skyboxes or platforms but always end up at ground level with the proper x and y coordinates. Is there a max z, i.e. altitude, for the function?


2017-05-24 00:12:03
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
This seems to be a limitation in LLAgent::teleportViaLocationLookAt()... This limitation will not appear if you don't use the "preserve_look_at" flag (or set it to false), the LLAgent::teleportViaLocation() being used in that case and not being affected...

I'll have a look at what can be done in LLAgent::teleportViaLocationLookAt(), but there is no guarantee this limitation can be overcome (should it be a server-side limitation).


2017-05-24 13:31:41
Profile WWW

Joined: 2016-06-19 21:33:37
Posts: 337
Location: Columbus area, OH, USA
Reply with quote
Thanks for the info. I did a quick test and using 'false' isn't sufficient. It seems the parameter must be completely absent for the altitude to be used. I guess I shouldn't have suggested preserving the look_at on teleport. :-(


2017-05-24 13:47:56
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
I found the bug that explains both issues... When I added the "preserve_look_at" parameter, I forgot to change a test for the number of parameters when fetching/assigning the altitude parameter, meaning that when more than 3 parameters are passed, the altitude is always ignored (and thus set to 0)... This will be fixed in next release.


2017-05-24 14:39:50
Profile WWW

Joined: 2016-06-19 21:33:37
Posts: 337
Location: Columbus area, OH, USA
Reply with quote
Ah, glad you were able to find the issue so quickly. Thanks.


2017-05-24 16:04:52
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.