|
Kristov Nikolaidis
Registered User
Join date: 16 Apr 2007
Posts: 16
|
05-28-2007 04:21
OK, what's the big secret? Let say that you had something large linked together and you need individual prims to move/rotate and not change the root prims position(like a leg kicking or a door opening). How is this done? I have seen it done many times so I know it's possible. If anybody could shed some light on this for me or give sample code, please do!
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
05-28-2007 04:33
Try llSetLocalRot() and regular old llSetPos() for scripts in the individual child prims, otherwise llSetLinkPrimitiveParams() from a root prim script (or, scripts, if delay is a problem). But beware of strange (buggy?) limits on the separation of prims in a linkset.
|
|
Kristov Nikolaidis
Registered User
Join date: 16 Apr 2007
Posts: 16
|
05-28-2007 04:39
llSetPos was the first thing I tried and it had no effect. Then I tried unlinking, moving, and relinking, but this appears not to be a workable solution either, because it had weird side effects.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
05-28-2007 05:08
If llSetPos() didn't work, I'd guess you might have been using world coordinates in the child prim, which would probably be trying to send it across the sim somewhere, far outside the linkset distance limits... you need to use local coords, which you can get with llGetLocalPos(). But that's just a guess.
|
|
Kristov Nikolaidis
Registered User
Join date: 16 Apr 2007
Posts: 16
|
05-28-2007 05:32
That did it, thanks alot guys 
|
|
Kristov Nikolaidis
Registered User
Join date: 16 Apr 2007
Posts: 16
|
05-28-2007 07:49
Any ideas on how get the local position of a prim?
|