Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rezzing an object with velocity

Fillo Farber
Registered User
Join date: 6 Jun 2004
Posts: 60
01-08-2010 16:36
Hey all,
Been a while since I got messed up with rotations so I guess I was due for one.

When you rez an object with a script, how do you set the velocity so that it is always ejected in the same direction relative to the prim the script is in? The rezzed object has no script in it. I wanted to rez it with a velocity assigned. I'm stumped as how to do this so it comes out from the direction of the same prim face each time - i.e. out of a gun barrel and not perpendicular to the barrel etc......

I hope I made that clear - I find explaining it almost as difficult as doing it.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
01-08-2010 16:50
velocity * llGetRot() in the rez call. velocity is assumed to point in the direction of the rezzors front.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Fillo Farber
Registered User
Join date: 6 Jun 2004
Posts: 60
01-08-2010 19:15
ah thank you....
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
01-08-2010 21:23
I think this assumes that the rezzer's "front" is oriented in the direction that you want the rezzed object to travel, which is not necessarily the case.

The expedient approach is to make sure that that is the case.
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-