Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Newbie build/script problem: Particle direction

Andurant Proudfoot
Registered User
Join date: 11 Jul 2004
Posts: 27
07-20-2004 20:34
Having a problem with my very first object and scripts. Perhaps someone can assist a new guy...

I built a fairly good sized cannon object out of four prims. Then, I crafted (using an example script) two particle system scripts: One to generate a short-lived huge cloud of black, sooty smoke and another to throw an angled cone of red to yellow fiery "sparks" out of the cannon.

Both scripts worked exceedingly well, so I added them to the content of my root prim: the cannon barrel. The barrel is aligned along the red "z" axis.

The effects work, but they're shooting out the SIDE of the cannon - the green "x" axis. My cannon is shooting out of its SIDE, not the FRONT of the barrel because of this.

Rotating the cannon rotates the axis, so that doesn't fix the problem. And, I can't find any properties/methods in the llParticleSystem that govern the direction of the effects.

Obviously, I'm missing some fairly basic bit of experience that relates to this - Anyone care to shed a light on this for me?

Once again: the scripts work, I just can't align their direction with the barrel.

Thanks in advance
Rysidian Rubio
Ruby Red Head
Join date: 14 Jan 2004
Posts: 263
07-20-2004 22:43
I'm guessing that you're using a push on the particles which doesn't take into account the object's rotation.

What you need to use instead are the Inner Angle and Outer Angle values, as these do take the rotation into account. I can't remember exactly how to use these to give the effect you are looking for, but I think someone explained them recently here in the forums. I'll link to that thread if I find it.
Wednesday Grimm
Ex Libris
Join date: 9 Jan 2003
Posts: 934
07-21-2004 07:44
A quick and dirty solution to particle direction problems is to create a small invisible prim, and allign it so that the particles go the way you want, from th origin you want, and link that to your object
_____________________
Sarcasm meter:
0 |-----------------------*-| 10
Rating: Awww Jeeze!
Andurant Proudfoot
Registered User
Join date: 11 Jul 2004
Posts: 27
07-21-2004 13:49
From: someone
Originally posted by Wednesday Grimm
A quick and dirty solution to particle direction problems is to create a small invisible prim, and allign it so that the particles go the way you want, from th origin you want, and link that to your object


That did the trick quite nicely.
Thanks!