|07 July 2013||#1|
Join Date: Feb 2008
Maya instancer particles wobble instead of rotate/spin
Hey guys. I've searched the net and I can't seem to find the answer anywhere... Ive been using all the standard rotPP code
most of my particles rotate, but some of my particles "wobble" almost as if they are gimbal locked or something. Here's my code:
nparticle1.RotPP = <<rand(360),rand(360),rand(360)>>;
//ive also tried "= rand(360);"
runtime before dynamics:
nparticle1.RotPP += <<3,3,3>>;
//ive also tried "+= 3;"
is there maybe a rotation order on the instancer node that helps with this? thanks!
|07 July 2013||#2|
Culver City, USA
Join Date: Apr 2003
The problem is you are adding rotations every frame in all axis. You need to pick a direction like so.
Creation: nparticle1.RotPP = <<rand(360),rand(360),rand(360)>>;
Runtime: nparticle1.RotPP += <<0,3,0>>;
If you want to randomly pick an axis to rotate around you would need to assign a variable that gives each particle a random number between 0 and 2 and write in your runtime expression an if statement that will assign a different axis of rotation based off that attribute.
Last edited by hkspowers : 07 July 2013 at 01:17 AM.
|Thread Closed share thread|