Marker Dinova
I eat yellow paperclips.
Join date: 13 Sep 2004
Posts: 608
|
10-31-2004 11:11
I've got an object consisting of a set of independant prims, with a central master prim. According to specific commands, I need the master prim to dynamically determine what independant prims to attach to, and do so without:
1) It asking me permission to do so, 2) the one second delay introduced after the linking.
Is there any way to accomplish this, or is there an alternative to linking? The selected linked objects are supposed to be rotated together with the master prim, then released.
_____________________
The difference between you and me = me - you. The difference between me and you = you - me. add them up and we have 2The 2difference 2between 2me 2and 2you = 0 2(The difference between me and you) = 0 The difference between me and you = 0/2 The difference between me and you = 0 I never thought we were so similar 
|
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
|
10-31-2004 11:44
As far as I know, objects linking to each other via script always ask for permission, which drives me insane. What you could do is have the master object pick who's going to move, get their locations, calculate where they should end up, and then tell them to move to that position using llSay and llListen...
_____________________
- Making everyone's day just a little more surreal -
Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"
|
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
|
10-31-2004 13:02
Are you just trying to achieve off-center rotations? You can rotate prims around points other than their center with some minor math. No linking required. For instance, if you want to rotate a prim located at <1,1,0> around <0,0,0> you can move it to <0,0,0>, rotate, and then move <1,1,0>*llGetRot(); Please dont murder me if this is incorrect, I am posting from memory  The general case is a bit more convoluted. I can look it up later, or let someone else do it for me  Or you could just pick up Introduction to Computer Graphics by Foley et al.  Err, or google it. Ok I'll shut up now.
|
Marker Dinova
I eat yellow paperclips.
Join date: 13 Sep 2004
Posts: 608
|
10-31-2004 17:20
Thanks for your suggestions, I'll be trying those..
I thought about the math thing.. but the reason I want to link is for them all to move at the same time. Is that possible any other way?
_____________________
The difference between you and me = me - you. The difference between me and you = you - me. add them up and we have 2The 2difference 2between 2me 2and 2you = 0 2(The difference between me and you) = 0 The difference between me and you = 0/2 The difference between me and you = 0 I never thought we were so similar 
|
Xero Zaius
Registered User
Join date: 4 Jan 2004
Posts: 17
|
10-31-2004 23:28
Technically yes you can just have your prims llSetPos to their new position (unless your using physics) but visually this doesn't always work. "Technically" if you use say to have them move on the SL server they have moved at almost the same time, the problem (the "Visually"  is that the client doesn't update it right so, in a way, no you can't have them move at the same time unless you link them. You can thank Linden Labs for that -XZ
|