PDA

View Full Version : Shatter driven by particles


codenamejyn
04-09-2004, 05:26 AM
I'm doing a test of a shattering glass that driven by particles.

Rotation is the "culprit"

The situation;
+ Radial field is pushing the glass in X axis;
Gravity filed is pulling in -Y axis;

+ Created a vector variable called "my_rot";
my_rot +=velocity*0.0001 and mapped it under "Rotation";

+ I found that all the glass rotate in the X axis, "clock-counter wise"
Added turbulence field so the velocity would not be in X axis alone....

+ but still the rotation on single axis "X" couldn't be solved...i figure out it's got to do with the "+=".....how do it make it for some to rotate in "-" and some in "+"....

Any solutions?



Thank You.
http://www.geocities.com/codenamejyn/shatter.avi

Don3Don
04-10-2004, 09:47 PM
I'm just doing the same thing in my recent project....

What you need is multiply a random "-1" or "+1" to your rotation X, and you cannot use "+=" method..

try this:
XXXXXXXXX * sign(rand(-1,1));

which "sign(rand(-1,1)) will produce random -1 or 1 result.


I use particle only on small shatter (secondary shatter)....
I rather use rigid body to simulate the motion.. which get much more good result.

hope this helps.:)

CGTalk Moderation
01-17-2006, 11:00 PM
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.