Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to move child prim

Zeb Zamboni
Registered User
Join date: 29 May 2004
Posts: 12
05-22-2007 17:57
How can I move a child prim a set distance in whatever direction it is currently facing?

Is it easy as adding or multiplying a rotation times a vector? Or do I have to use trig to calculate the end point and then llSetPos() to it?
AJ DaSilva
woz ere
Join date: 15 Jun 2005
Posts: 1,993
05-22-2007 19:37
IIRC

llGetPos() + llRot2Fwd( llGetRot() ) * offset