  | | | Particle rotation event script.... | Particle rotation event script.... 2004-03-10 - By Dan Yargici
Back I have a particle cloud with a bunch of instanced characters and their rotation is set to 'align on velocity' but I would only like this to affect Y rotation. I thought I might be able to take in the rotationarray for the cloud and set the x and z rotation back to 0 on every frame but it seems the align on velocity is applied after the script event, thus cancelling it out.
So the question is... how can I reset these or how can I derive my own Y rotation from the velocity? I'm not much of a maths head ( I was once, honest! ) so any help would be greatly appreciated.
DAN <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2800.1400" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>I have a particle cloud with a bunch of instanced characters and their rotation is set to 'align on velocity' but I would only like this to affect Y rotation. I thought I might be able to take in the rotationarray for the cloud and set the x and z rotation back to 0 on every frame but it seems the align on velocity is applied after the script event, thus cancelling it out.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>So the question is... how can I reset these or how can I derive my own Y rotation from the velocity? I'm not much of a maths head ( I was once, honest! ) so any help would be greatly appreciated.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>DAN</FONT></DIV></BODY></HTML>
|
|
 |