Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Object to follow rotating child prim

Pierre Webb
Registered User
Join date: 29 Mar 2006
Posts: 3
09-30-2006 12:57
Hi guys,

Let me explain what i'm trying to do.

I have a big wheel, (Ferris wheel), i want each seats to follow a specific child prim (handlebar) in the rotating wheel i tought of using the prim uuid but so far i'm stuck

Any ideas?


Pierre
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
09-30-2006 14:46
it would probably be better to sense the ferris wheel, get it's rotation and then have chair calculate it's offset from the wheel and move there.
CODE
vector offset = <0.0, 0.0, 5.5>; // the chair at the top

// blah blah... repeateing sensor...
sensor(integer n)
{
llSetPos(llDetectedPos(0) + (offset * llDetectedRot(0)));
}
(I think... rotations still befuddle me now and again.)
_____________________
Kage Seraph
I Dig Giant Mecha
Join date: 3 Nov 2004
Posts: 513
10-01-2006 16:01
/54/57/84993/1.html
_____________________
Pierre Webb
Registered User
Join date: 29 Mar 2006
Posts: 3
Let look at the problem i another way
10-01-2006 20:41
Since i too have to script knowledge equivalent to a grapefruit. i'm still learning a lot.

if we get the child prim (basket) to look at a specific coordinate below (on the ground)
It should work?

Pierre
Kage Seraph
I Dig Giant Mecha
Join date: 3 Nov 2004
Posts: 513
10-01-2006 20:43
Pierre, the example code snippet at http://lslwiki.com/lslwiki/wakka.php?wakka=llLookAt (or an adaptation thereof) may be useful to you.
_____________________
Pierre Webb
Registered User
Join date: 29 Mar 2006
Posts: 3
Rotations
10-03-2006 11:47
I tried that script but without luck

anybodies know the real use of llRot2Up, does it work on child prim?

Pierre