Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Offset particles.

Aaron Levy
Medicated Lately?
Join date: 3 Jun 2004
Posts: 2,147
12-22-2004 22:04
Is there any way to offset where a particle is generated. For example, from the object's center: -0.25 on the X, 0 on the y and -0.10 on the z?
blaze Spinnaker
1/2 Serious
Join date: 12 Aug 2004
Posts: 5,898
12-22-2004 23:06
I use rez object to do this. Not great, but may be your only choice.. Use temp rez if possible so you don't have to worry about cleanup.
_____________________
Taken from The last paragraph on pg. 16 of Cory Ondrejka's paper "Changing Realities: User Creation, Communication, and Innovation in Digital Worlds :

"User-created content takes the idea of leveraging player opinions a step further by allowing them to effectively prototype new ideas and features. Developers can then measure which new concepts most improve the products and incorporate them into the game in future patches."
Aaron Levy
Medicated Lately?
Join date: 3 Jun 2004
Posts: 2,147
12-22-2004 23:11
Are you kidding? I was trying to save prims, and I can't use temp rez cause they need to stick around.
CrazyMonkey Feaver
Monkey Guy
Join date: 1 Jul 2003
Posts: 201
kinda
12-23-2004 08:52
The old particle calls have an offset. I wish the new one did too, I hate wasting prims.
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
12-24-2004 14:02
I had to wrack my brain to find a way to arbitrarily place particles in space; I've managed to build an (almost) all-particle avatar radar system. You can't directly place particles wherever you want, however you can get around this.

What I did was set the particle system type to ANGLE_CONE, and set a very very small OUTER_ANGLE value (like, maybe one degree or so). This will place particles in effectively one position, aligned (more or less) along the z-axis of the containing prim.

Then the fun part. I use llSetRot() to rotate the prim, to point the z-axis in the direction I want to generate a particle in, then set BURST_RADIUS to the desired distance from the generator, then drop a couple particles there. Stop the generator, point it to the next direction, adjust the burst radius, rinse, repeat. :)

Edit: On a related note, am I the only one who thinks the behaviour of ANGLE_CONE is really, really tardcore? I mean... the cone described by OUTER_ANGLE is not centered on any of the prim axes! As you increase the radius of the cone, the centerline of the cone starts creeping down from the z-axis towards the y-axis (I think). This is completely different behaviour from say, the cone volume described by a sensor, which is always centered on the x-axis. Grr.
_____________________
- Making everyone's day just a little more surreal -

Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
12-25-2004 03:07
From: Cross Lament
Edit: On a related note, am I the only one who thinks the behaviour of ANGLE_CONE is really, really tardcore? I mean... the cone described by OUTER_ANGLE is not centered on any of the prim axes! As you increase the radius of the cone, the centerline of the cone starts creeping down from the z-axis towards the y-axis (I think). This is completely different behaviour from say, the cone volume described by a sensor, which is always centered on the x-axis. Grr.


ahhh that sounds like a bug.

but cool idea, wish i thought of it.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey