|
Dylan Rickenbacker
Animator
Join date: 11 Oct 2006
Posts: 365
|
08-07-2008 08:21
I just came back from vacation to find that a ladder climbing script I made that used to work just fine suddenly doesn't anymore, at least not for ladders higher than about 5 meters. Here's the crucial part of the script: while(curPos != target) { if(target == up) { curPos = curPos - <0.0,0.0,0.25>; // curPos starts as the original positon of the poseball, the poseball itself is moved directly to target llSay(0,"curPos is now " + (string)curPos); //Debug avPos = curPos - avOffset; llSay(0,"avPos is now " + (string)avPos); //Debug llSetLinkPrimitiveParams(avlinknum, [PRIM_POSITION,avPos]); } if(target == down) { curPos = curPos + <0.0,0.0,0.25>; avPos = curPos - avOffset; llSetLinkPrimitiveParams(avlinknum, [PRIM_POSITION,avPos]); } } What happens is that although avPos is calculated correctly throughout the while loop, the avatar actually moves only about 5 meters up, then stays in position until the while loop has run out. On the way down, the avatar jumps to that same position and stays there until avPos has caught up with it, then climbs the rest of the way down. I use the same script with another ladder that's only about 5 meters high - that one still works fine. It looks to me as if some time in the last few weeks some restriction has been implemented so that an avatar in a link set cannot be moved further from the root prim than 5 meters. (The root prim in this case is the lowest rung of of the ladder.) Can anyone confirm that? It seems to affect only the avatar, as the poseball is still being moved to the correct up and down positions. Any thoughts? Thanks in advance.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
08-07-2008 11:15
The implementation HAS changed a bit recently. Last week I could zoom way underground or way out to (off-world) sea with llSetLinkPrimitiveParams(). Now it is definitely constrained to above ground level and the horizonal sim boundaries (you can't even use it to cross into an existing neighbor sim). Bummer eh? As of yesterday or the day before (last time I tried) I was able to go quite far within the sim boundaries though. That IS with a single-prim object though, and I've been guaranteed several times by folks here on the forum that the bahavior with multi-prim objects is different, though I still don't think I have tested it myself.
|
|
Dylan Rickenbacker
Animator
Join date: 11 Oct 2006
Posts: 365
|
08-09-2008 11:59
Apparently there's a new restriction in place on how far a sitting avatar can be moved from the root prim. For my 10 meter ladder, I fixed this by making a rung in the middle the root prim instead of the lowest. I have to try yet whether that workaround works with higher ladders, too.
|