|
Krista Chaffe
Registered User
Join date: 16 Jun 2007
Posts: 96
|
02-02-2008 11:40
I can emit particles and play with accelerations, what I can't seem to do is set initial velocity to anything other than 0.0.
I'm trying to control the particle velocity, in the example below I want the particles to travel 10m before disappearing.
Anybody have clue what I am missing
llParticleSystem([ PSYS_SRC_MAX_AGE, 20.0, PSYS_SRC_BURST_SPEED_MIN, 1.0, PSYS_SRC_BURST_SPEED_MAX, 1.0, PSYS_PART_MAX_AGE, 10.0, PSYS_PART_FLAGS, PSYS_PART_EMISSIVE_MASK, PSYS_PART_START_COLOR, <1,0,0>])
|
|
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
|
02-02-2008 18:27
If you want a good lesson/tutorial about particles I recommend you to go to the Particle Lab. It has graphics explanations with prims and particles about how they work, it's very didactic, I highly recommend this. Search for "Particle Lab" in places and you'll find it.
|
|
Debbie Trilling
Our Lady of Peenemünde
Join date: 17 Oct 2006
Posts: 434
|
02-02-2008 23:57
From: Krista Chaffe ... want the particles to travel 10m before disappearing..
llParticleSystem([ PSYS_SRC_MAX_AGE, 20.0, PSYS_SRC_BURST_SPEED_MIN, 1.0, PSYS_SRC_BURST_SPEED_MAX, 1.0, PSYS_PART_MAX_AGE, 10.0, PSYS_PART_FLAGS, PSYS_PART_EMISSIVE_MASK, PSYS_PART_START_COLOR, <1,0,0>]) The fundamental omission in this llParticleSystem() call is that no pattern has been defined. Add the line: "PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_EXPLODE," and everything will start coming together for you  Although technically it is fine not to list each and every one of the parameters in the llParticleSystem() call, and I frequently write calls like this myself, it is important that you have a very good understanding of each so that you know exactly what you are omitting, why you are doing so and what the consequences will be. Otherwise it is safer to use a template that lists all the parameters, even if a particular parameter does not have an active effect of the emission, so that you know for sure that you haven't missed anything. EDIT: for a defination of all the llParticleSystem() call parameters, see: http://wiki.secondlife.com/wiki/LlParticleSystemfor a good entry-level llParticleSystem() call template, see: http://lsl.dimentox.com/snippet.php?sid=10
|
|
Krista Chaffe
Registered User
Join date: 16 Jun 2007
Posts: 96
|
02-03-2008 10:33
Thats what I ended up doing but never did figure out what I'd missed.
Thanks
|