PDA

View Full Version : Reading particle positions in expression


playmesumch00ns
02-12-2003, 07:30 PM
How can I get at an individual particle's world-space position in a creation expression? I want to alter its lifespanPP based on its position relative to another object

thanks

playmesumch00ns
02-12-2003, 10:57 PM
nevermind, turns out it's a vector, "position", and it's implicitly referenced for each particle.

Sanctuary
02-12-2003, 11:14 PM
if u wanna use it u need to define a vector variable, something like

vector $pos = position;

in this way you can split the vector in 3 parts $pos.x, $pos.y, $pos.z

CGTalk Moderation
01-14-2006, 10:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.