|
Yoshinori Shirakawa
Registered User
Join date: 18 Jan 2006
Posts: 143
|
03-20-2006 08:10
I do have a problem creating an object in SL. The object is build with two different Items, every item is build with several Prims. Item A is a static big one and transparent, Item B is a smal one in the middel of Item A, and moving. So I will call it dynamic one.
The Object I want to create is a combination with this two Items.
So I build Item A, group it. I build Item B group it as well and put the Rotating Script on it. I create a invis Prim in the center of the Item (B) to define the pivotal point. I move the dynamic Item (B) in the middle of the static Item (A).
Everything looks perfect! I can moove the complete Object if I select bot Items together. But I cant group both Items to have one single linked Object to move, or sell... In the moment I group them everything is moving...
Is there someone who can help? Please let me know...!!!!
|
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
03-20-2006 09:53
As far as I know, you have two choices.
1) Do not link the two "items". You can select both and sell them together as a unit, or put them in a box to sell, they will rez together. If concerned about people moving them, perhaps (haven't thought all the way through this), the static object can whisper its location when it is moved and the moving object can listen and change its position as well.
2) Link them together and make all of the rotation and everything happen just in those child prims. You could use a link_message from one to the rest in object B and define how each would move and rotate. For any prims that would not rotate around their own center, I would hate to think of the math involved. But I would presume it would be possible.
The third choice that I am aware of is, of course, give up on this idea . . .
Baron
|
|
Yoshinori Shirakawa
Registered User
Join date: 18 Jan 2006
Posts: 143
|
03-20-2006 10:24
From: Baron Hauptmann The third choice that I am aware of is, of course, give up on this idea . . .
Baron Ahoi Baron! Thanks a lot for your responce  just to make sure  this is SL, the Place to make my ideas come true!  For me the second Solution sounds the "best" one, but, as far as I am a totaly Script-Newb with no time to learn it, I have to try the first one, which sounds possible as well. In addition to that I guess there are allready Scripts available doing this... so, of course my next question, can someone provide me such Script including all settings I need to configure my Object? Or maybe someone can tell me, where I can get such a script?
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
03-22-2006 20:28
I am doing something similar. I am leaning towards the first option, but I don't wanna spam a million posistion messages to the dynamic object. Is there any way for one object to get the position of another non-linked object? IE, kinda like llGetObjectPos(key target_object)?
|
|
Yoshinori Shirakawa
Registered User
Join date: 18 Jan 2006
Posts: 143
|
03-23-2006 05:10
Talarus, I got a solution provided by a german scripter. If you want, we can meet us some times so I will show u the result for my project. I will be online today at 2:00 SL time at Die Insel - a german Sim, just dropp in in case u want to see it. cheers, Yosh
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
04-07-2006 16:34
Thanks, Yoshi. Sorry I didn't respond sooner. I was given a rotation scriptlet that did what I was looking for.  The problem I was having was trying to get an object to orbit me with llTargetOmega. When I attached it, it failed to orbit anymore. Turns out I had to change the Omega vector based on where it was attached.
|