These forums are CLOSED. Please visit the new forums HERE
small movements |
|
|
Grafikimon Oh
Grafik Design
Join date: 1 Feb 2007
Posts: 35
|
02-08-2007 10:01
I need to make a prim move about 0.01m at regular intervals. just a jump to the new position then back to old. The problem is if I link the moving part to a larger prim how do I have just that move and not the whole thing.
|
|
Learjeff Innis
musician & coder
Join date: 27 Nov 2006
Posts: 817
|
02-08-2007 10:14
Make sure the moving part is NOT the root prim in the object. Then the movements will be object-relative, using llSetObjectPos(). This will move the prim and not the object, as described in the wiki mirror, http://www.lslwiki.org.
Haven't actually done this yet, so someone correct me if I'm wrong! Cheers Jeff |
|
Grafikimon Oh
Grafik Design
Join date: 1 Feb 2007
Posts: 35
|
02-08-2007 10:57
how do I determine the root prim. everytime I link i never get the prim I expected as root. Is it the first thing or last thing selected?
|
|
Ravanne Sullivan
Pole Dancer Extraordinair
Join date: 10 Dec 2005
Posts: 674
|
02-08-2007 11:16
The last prim selected when you are linking them will be the root prim. To check this you can just drop something in to the linked object and then edit, edit linked parts and look for the prim that the dropped item ended up in.
_____________________
Ravanne's Dance Poles and Animations
Available at my Superstore and Showroom on Insula de Somni http://slurl.com/secondlife/Insula de Somni/94/194/27/ |
|
Learjeff Innis
musician & coder
Join date: 27 Nov 2006
Posts: 817
|
02-08-2007 12:07
Usually you can just edit the object, and see whether yellow or blue. I forget which is which, but the root prim is highlighted using a different color than the rest.
The "last selected orim is root" policy seemed wrong to me at first but I figured out why: you can drag to select the whole lot of them, shift click the root prim twice, and then link. It's important to pay attention to which prim is the root for a lot of reasons. Not least of which is the 'touch' behavior -- you usually want the root prim to hold the script that gets the touch action. (Also true for 'sit', which is more complicated because a sit can percolate to other prims but I don't think a touch will.) |
|
Grafikimon Oh
Grafik Design
Join date: 1 Feb 2007
Posts: 35
|
02-08-2007 16:58
Okay after reading through the link and messing with this I got this script
CODE
so I got it working but I can't get a group of objects to bounce together. The server is so slow doing this that I took out the script to make it bounce back since it seemed pointless. In the mean time I put it on each object but again lag slows them down. You can see the result at Burns 140,3, 59 or do a search for AFGi. I may have to go another way for this. Thanks for the help |