Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
|
01-03-2010 12:28
Hi.
Is there a way to make a particles come from a chosen side of the prim? insted of just local Z?
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
01-03-2010 12:36
From the LSL Portal ...... "Each prim has only one (1) particle emitter, located at its geometric center, and aligned along the prim's local Z-axis, pointing in the positive Z direction. " So no, you can't make particles shoot out of any other face. Sorry.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-03-2010 12:51
not entirely true... velocity and targeting can make them appear to move at any angle... but it's not always useful... it's often easier to just rotate the emitter and/or make it a separate prim if it's not convenient to the build.
_____________________
| | . "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... | - 
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
01-03-2010 13:00
Well, OK..... You can always emit the particles from some other prim, made transparent and superimposed to make it look as if particles were being emitted from something other than the +Z end of the real prim, but that begs the OP's question. A particle emitter has to emit from the +Z end of the prim it's in. 
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-03-2010 13:47
any of the three might work... depending on what's being called. figured i'd throw solution option as the question 
_____________________
| | . "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... | - 
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
01-03-2010 14:15
Well, yes and no.
If you want the full range of particle options and flexibility, the answer is no.
if you just want something rather simplistic, you can use one of several methods to approximate it:
1) PSYS_SRC_PATTERN_DROP (or PSYS_SRC_PATTERN_EXPLODE and VERY small PSYS_SRC_BURST_SPEED_MIN/MAX) and PSYS_SRC_ACCEL 2) PSYS_PART_TARGET_POS_MASK (or PSYS_PART_TARGET_LINEAR_MASK), PSYS_SRC_TARGET_KEY, and use a target prim. 3) PSYS_SRC_PATTERN_ANGLE and some tweaking of PSYS_SRC_INNERANGLE and PSYS_SRC_OUTERANGLE (maybe; they are deprecated values and I don't use them often enough to be sure that it would work; even then they will likely only come out of certain faces (+y,-y,-z)). 4) PSYS_SRC_PATTERN_ANGLE (or ANGLE_CONE) with PSYS_SRC_ANGLE_BEGIN/END both set to PI; this will make them appear to come out of the -z direction of the prim.
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-04-2010 09:09
I'd forgotten about option 4 thanks for the reminder...
inner/outer would seeem to present a cone, based on taking floats, but sinc it's edge aligned it may be a cone around 1 axis. it may be a reduced sphere IIRC... it's been a long time since I played with that.
_____________________
| | . "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... | - 
|