Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Particle emmiter rotating, newbie help

Shakaar Menatep
SFC-SLQ Cadet
Join date: 30 Oct 2006
Posts: 22
11-03-2006 03:58
Hi im a noobie both in this game and programming in general, dosnet mean i wont give it a fair go though.

ive been stuck with this for 8 hours now and for the life of me cant make it work

basicly im using jopsy's particle template v5 which ive changed from PSYS_SRC_PATTERN_ANGLE to PSYS_SRC_PATTERN_DROP in an attempt to make a laser beam. that bit wasnt too hard, after figuring out how to stop all the particles congregating round the emmiter.

ive now got a reasonable beam but the problem is when i rotate the emitter or wear it and rotate my AV the beam stays fixed firing in the same direction. When the script was orriginaly using PSYS_SRC_PATTERN_ANGLE i could rotate or wear the object and the particles would move accordingly.

How can i make the particles move/rotate with the AV or object as before? perhaps its because im using PSYS_SRC_PATTERN_DROP or maybe a fixed vector ACCEL (probably not) any help would be greatly appreciated
Vares Solvang
It's all Relative
Join date: 26 Jan 2005
Posts: 2,235
11-03-2006 12:53
Shakaar, what you are trying to do won't work with pattern drop. I made a laser pointer that will do what you want by using PSYS_SRC_PATTERN_ANGLE, but give it these settings:

AGE = 25.00;
RATE = 0.1;
COUNT = 4;
LIFE = 0.0;
PATTERN = PSYS_SRC_PATTERN_ANGLE
RADIUS = 0.00;
ANGLE_BEGIN = 0.00;
ANGLE_END = 0.00;
FOLLOW_SRC = FALSE;
FOLLOW_VELOCITY = TRUE;
WIND = FALSE;
BOUNCE = TRUE; (I imagine this could be FALSE as well.)
SPEED_MIN = 1.00; (the Min/Max speeds can be played with to get diff effects)
SPEED_MAX = 1.20;
ACCEL = < 0.00, 0.00, 0.0 >;


This should work for you, though you might have to tweek it a bit to get the exact effect you want.
_____________________
Shakaar Menatep
SFC-SLQ Cadet
Join date: 30 Oct 2006
Posts: 22
11-03-2006 15:56
thx very much, ill try that. :D
_____________________
Ensign
StarFleet Command Second Life Quadrant
Galaxy 173,83