Here's the expression:
27. In the end the new runtime espression looks like this:
Play the animation and make sure both freeze fields are working. once again, it ain't stellar demo tape material but you should be able to see how these techniques could be useful in more complex animations.
Try turning the goal weights on by setting the goal weights to small numbers in the creation expression. Or use the conditional statement to change a different attribute than velocity. Try radius or acceleration.
Hope this has been helpful. Email me if you have questions and enjoy Maya 7.
if ((abs($pos-$goal0Pos)<$distance0)||(abs($pos-$goal1Pos)<$distance1))
particleShape1.velocity=$velo;
vector $velo=particleShape1.velocity;
27. In the end the new runtime espression looks like this:
vector $goal0Pos=particleShape1.goalWorldPosition0PP; vector $goal1Pos=particleShape1.goalWorldPosition1PP;
vector $pos=particleShape1.position;
float $range0=.5*freezeField0.fieldSize;
float $range1=.5*freezeField1.fieldSize;
vector $distance0=<<$range0,$range0,$range0>>;
vector $distance1=<<$range1,$range1,$range1>>;
vector $velo=particleShape1.velocity;
if ((abs($pos-$goal0Pos)<$distance0)||(abs($pos-$goal1Pos)<$dista nce1))
$velo=0;
particleShape1.velocity=$velo;
Play the animation and make sure both freeze fields are working. once again, it ain't stellar demo tape material but you should be able to see how these techniques could be useful in more complex animations.
Try turning the goal weights on by setting the goal weights to small numbers in the creation expression. Or use the conditional statement to change a different attribute than velocity. Try radius or acceleration.
Hope this has been helpful. Email me if you have questions and enjoy Maya 7.
Author: robotball
Submitted: 2005-10-09 23:31:21 UTC
Tags:
Software: Maya
Views: 55,010
Related Items
-
Realistic sexy posed brunette woman in multiple outfits vinyl and lingerie 3D Model
$69.00 (USD) -
Elephant 3d textured model 3ds max and maya scene files 3D Model
$30.00 (USD) -
Tire and Rim 3D Model
$9.00 (USD) -
Kangaroo Rigged and Animated 3D Model
$30.00 (USD) -
j-7 3D Model
$120.00 (USD) -
Blonde woman in jeans and sweater - aXYZ design - AWom0004-CS / Rigged for 3D Max + Character Studio 3D Model
$49.00 (USD) -
7.62x25 Tokarev Cartridge 3D Model
$25.00 (USD) -
7.62x51 NATO Cartridge 3D Model
$25.00 (USD) -
7.62x39 Cartridge 3D Model
$25.00 (USD)