Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Direction of emitted particles

Abdiel Nimbus
Registered User
Join date: 11 Nov 2006
Posts: 4
12-02-2006 08:20
Greetings!

I have a small problem with particles and this is the direction of the emitted particles.

The emitter of the particles usually has the same direction as the object it is in.
If i now rotate the object upside down, the emitter rotates as well and now emitts my particles to the ground instead emitting them to the sky.

I guess this is trivial, but i haven't found out so far how to rotate the emitter independently from its parent object so the both "show" in different directions.

I'm using "PSYS_SRC_PATTERN_ANGLE_CONE" to emitt the particles within a cone to the sky.
PSYS_SRC_ANGLE_BEGIN, 0.0
and
PSYS_SRC_ANGLE_END, PI / 8
describe the cone i use. I thought just inverting those parameters will do it, but in fact it doesn't or i'm to stupid to do so....


Anyone give me a hint on that please? :D
Don't need a full script, just the Flag that will do the trick.

Thank you very much!

Abdiel Nimbus
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
12-02-2006 09:46
If you want it to fire particles out the 'back' of the object, then you would want:

PSYS_SRC_ANGLE_BEGIN, PI - (PI / 8)
and
PSYS_SRC_ANGLE_END, PI

If you want them to go up all the time, then you might want to look at PSYS_SRC_ACCEL instead, since it accelerates particles in the global axis.
_____________________
Computer (Mac Pro):
2 x Quad Core 3.2ghz Xeon
10gb DDR2 800mhz FB-DIMMS
4 x 750gb, 32mb cache hard-drives (RAID-0/striped)
NVidia GeForce 8800GT (512mb)
Abdiel Nimbus
Registered User
Join date: 11 Nov 2006
Posts: 4
12-02-2006 13:37
Thanx-a-lot :)
This just works perfect. I'm still confused about those angle settings. :)
Jopsy Pendragon
Perpetual Outsider
Join date: 15 Jan 2004
Posts: 1,906
12-02-2006 14:01
There are demonstrators for angle patterns in The Particle Laboratory which may help clarify some... Haravikk's suggestion is excellent, but if you wanted it rotated 90 degrees instead of 180, you'd be out of luck.

(Angle patterns are symmetrical across the prim's local z axis.. angle_cone have radial symmetry around the prim's z axis. Usually it's best to just rotate the prim itself. :))
_____________________
* The Particle Laboratory * - One of SecondLife's Oldest Learning Resources.
Free particle, control and targetting scripts. Numerous in-depth visual demonstrations, and multiple sandbox areas.
-
Stop by and try out Jopsy's new "Porgan 1800" an advanced steampunk styled 'particle organ' and the new particle texture store!