Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Shifting a prim in linked object.

Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
08-21-2007 13:52
An object consisting of 2 or more linked prims...

I want to shift one of the linked prims up or down at various times.

Before I go about figuring out how to do this*, can anyone tell me if it's pointless to try in the first place? I mean say the prim in question is a door handle on a door. If i tell the handle to move up or down, is the whole darn door going to move with it?

__________________________

* probably very simple I would imagine, involving llSetPrimitiveParams & PRIM_POSITION
Jotheph Nemeth
Registered User
Join date: 9 Aug 2007
Posts: 142
08-21-2007 17:23
From: Chaz Longstaff
An object consisting of 2 or more linked prims...

I want to shift one of the linked prims up or down at various times.

Before I go about figuring out how to do this*, can anyone tell me if it's pointless to try in the first place? I mean say the prim in question is a door handle on a door. If i tell the handle to move up or down, is the whole darn door going to move with it?

__________________________

* probably very simple I would imagine, involving llSetPrimitiveParams & PRIM_POSITION



You can use llSetLinkPrimitiveParams to set the position of the linked object, or you can use llSetPos in a script in the child prim itself.

From the wiki:

"Moves the prim to position pos. If the calling script resides in a single prim or the root of a linked object, then pos is in region coordinates, which are relative to the simulator's southwest corner. If the script resides in a child prim in a link set, the pos is relative to the root prim of the link set."