a lost user
Join date: ?
Posts: ?
|
08-18-2005 01:38
Ok here is my problem:
Im trying to make an attachment. Now this attachment is made of 4 "pieces" each "piece" consists of 2 prims. Now im trying to make it so each piece rotates on 1 axis when a verbal command is giving. Now if I don't link them how will each "piece" follow? If I do link them and try changing the child prims rotation that would be a mess. If I don't link them how can I get all the "pieces" to rez; Then the problem arises how do I get them to follow and rotate. If they all res from one main "piece" and they are following and the main "piece" changes it's rotation how can they rotate and keep following? I have searched the forum and have found nothing.
Pretty much I need a miracle or some awsome godly coder. Ungodly coders are welcome to help. (ok it probably is possible but thinking about how to do it is making my head hurt.)
Thanks for any help.
P.S. I am still technically a noob as it were but I have coding experience in C++ and have coded a little bit using the physics.
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
08-18-2005 07:42
Parts of attachments can not move. You can manipulate the textures and size but that is it.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
08-19-2005 00:00
So essentially you want a group of unattached prims to rotate independently, but all relative to one "parent" prim? Yes? If that's the case...my INITIAL thought is... --Rezz the "parent" and have the "on_rez" event rez all the "child" objects. --In the scripts of the child objects, drop a listen for the parent's movement--and anytime the parent moves, have it whisper it's rotation so that all the children can listen and move in a corresponding manner. --Each child will probably also have some sort of listen or "on_touch" or "changed" event worked into it to rotate independently...but I don't know how you're planning on controlling that... ...then you're good. So really, the children are just listening for commands, while the "parent" is listening for commands from the user and broadcasting commands to the children. --Of course, Listen and Whisper/Say events are lag-producing, so the best idea is to minimize that kind of stuff...so there could be a better way...I'm just brainstorming and tryin' to get your thoughts organized in my head 
|
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
|
08-19-2005 00:51
From: Ralan Gall If they all res from one main "piece" and they are following and the main "piece" changes it's rotation how can they rotate and keep following? I have searched the forum and have found nothing. hmm.... speaking of following.... what about pet script? No? 
_____________________
 Seagel Neville 
|
a lost user
Join date: ?
Posts: ?
|
hmm...
08-19-2005 10:32
From: Kenn Nilsson So essentially you want a group of unattached prims to rotate independently, but all relative to one "parent" prim? Yes?
If that's the case...my INITIAL thought is...
--Rezz the "parent" and have the "on_rez" event rez all the "child" objects.
--In the scripts of the child objects, drop a listen for the parent's movement--and anytime the parent moves, have it whisper it's rotation so that all the children can listen and move in a corresponding manner.
That would be a good idea but what command would I need to know if the parent has moved. Would I just use a whole bunch of llGetPos geting it's position then comparing it to it's old postion and if there is a change send it to the children. If so what about rotating? Thanks for your answer it's better than Strife Onizuka's response. From: Seagel Neville
hmm.... speaking of following.... what about pet script? No?
I checked that out and that may be the answer to some of my problem and would probably be better than alot of listens. THANKS.
|
Les White
sombish
Join date: 7 Oct 2004
Posts: 163
|
08-19-2005 12:32
This is for an attachment right? It can't move. Strife is right.
You can do texture animations or alpha tricks.
|