Yingzi Xue
Registered User
Join date: 11 Jun 2008
Posts: 144
|
09-15-2009 12:07
I've tried making a teleporter where I use the avatar's link number to move them as a linked prim to their destination, but the destination always seems to be wrong. I'm using a destination position 20m away and it moves someplace completely different. Is it because the linked avatar has to be referred to with a local position? I was trying to get around having to move the sit prim with the avatar. I'm sure the answer is simple. By the way, I'm using the "warp" example from the wiki for the movement, but with llSetLinkPriitiveParams and the avatar's link number.
Thanks in advance.
|
EF Klaar
Registered User
Join date: 11 Jun 2007
Posts: 330
|
09-15-2009 12:16
It's usual to use llSitTarget to make a teleporter, and to unsit the avatar immediately. Can you post a link to the example you quote?
(Edit) Ah, I found Jesse's example. If you are making a teleporter that just needs to TP people to different places in the same sim, using llSitTarget to position the avatar at the destination and then to unsit them immediately is by far the simpler method.
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
09-15-2009 12:25
From: Yingzi Xue Is it because the linked avatar has to be referred to with a local position? Yeah, you treat the avatar as you would any child prim. If you want to move to a given set of world coordinates, you need to cancel out the root prim's position and rotation. While there was a period when it was more flexible, avatars are currently clamped to a maximum of 54 meters from the root for llSetLinkPrimitiveParams. ETA: llStitTarget is often easier, but it gets in the way if you want to decide if and where to move after the avatar is already sitting.
|
Yingzi Xue
Registered User
Join date: 11 Jun 2008
Posts: 144
|
09-15-2009 12:28
Yes, I'm using llSitTarget. Speaking of which, yes I need to use local position and rotation. The example here shows me the answer... http://wiki.secondlife.com/wiki/LlSitTarget
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
09-15-2009 13:45
See http://jira.secondlife.com/browse/SVC-1433A real bummer IMO. I had a really, really nice single prim (no rezzing) intra-region teleporter that made use of this before they "fixed" it.
|