|
Scaeva McBride
Registered User
Join date: 16 Aug 2007
Posts: 1
|
04-20-2009 14:31
Hi there, does anyone know if there is any way to script two linked objects such that they rotate independantly of each other and on different axes. I am working on a gattling gun and need the barrel to rotate and the firing handle to rotate on a different axis.
|
|
Aztral Aeon
Registered User
Join date: 22 Dec 2007
Posts: 34
|
04-20-2009 15:48
llSetPrimitiveParams([PRIM_ROTATION, r_insert_your_rotation_here]);
Will rotate just the prim this is placed in
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
04-20-2009 16:25
From: Aztral Aeon llSetPrimitiveParams([PRIM_ROTATION, r_insert_your_rotation_here]);
Will rotate just the prim this is placed in ...unless it is in the root prim, in which case the whole object will rotate, the child prims moving about an axis passing through the root prim's center. So probably best to make the root prim one that doesn't have to rotate if you want parts to rotate independently.
|
|
Aztral Aeon
Registered User
Join date: 22 Dec 2007
Posts: 34
|
04-20-2009 18:10
Ya....what Hewee said
|