View Full Version : Restrict Particles to an Axis
fallenrelics 06-03-2009, 10:28 PM Hey everyone,
Is there any way to restrict/constrain the standard maya particles to an axis or plane.
For instance I would like to have my turbulance field only affect the x and z position per particle.
Thanks
|
|
YourDaftPunk
06-03-2009, 11:28 PM
Use a particle expression to kill the position on the Y axis:
vector $pos = particleShape1.position;
particleShape1.position = <<$pos.x, 0, $pos.z>>;
Make sure the expression is added to both Runtime After Dynamics and Creation.
A second alternative would be to add a Drag field with Direction turned on and set to (0,1,0) and a magnitude higher than your turb field.
-shawn
Aikiman
06-03-2009, 11:41 PM
If you dont want all your particles to be placed at zero in Y then swap out position with velocity.
fallenrelics
06-04-2009, 01:09 AM
thanks shawn,
i was close but maya didn't like
<<particleShape1.position.x, 0, particleShape1.position.y>>
so i thought i was barking up the wrong tree.
as for the drag method, it definitely helps flatten the particle volume, but i couldn't get it acting on a perfect plane. i suppose that method is more for adjusting the particles to be flat instead of setting them exactly.
thanks again.
paul
CGTalk Moderation
06-04-2009, 01:09 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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.