|
Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
|
12-17-2008 05:10
I'm using this line of code:
llRezObject(missileName, llGetPos()+<0,0,-5>, llGetVel() + <25, 0, 0>, llGetRot(), 0);
The Issue I'm having is the "llGetVel() + <25, 0, 0>," is sending it 25 as the regions axes and not the local axes.
How can I make this number dynamic based on the local axes of the prim?
|
|
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
|
12-17-2008 06:06
I think you can just multiply it by the rotation of the object, like this:
llGetVel() + (<25, 0, 0> * llGetRot())
|
|
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
|
12-17-2008 07:45
Yep. Probably want to multiply in the rotation for the rezzed position, too.
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!! - Go here: http://jira.secondlife.com/browse/SVC-1224- If you see "if you were logged in.." on the left, click it and log in - Click the "Vote for it" link on the left
|
|
Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
|
12-17-2008 08:36
Thank you.
|