Sprite direction

Hi All,
I'm trying to work out how to I can get particle sprites to orientate themselves to there individual directions.

ie. arrow sprites of a fountain pointing in the direction each particle is traveling..

If anyone can help me with this I'd be extremely grateful..

Scott

mailto:magic@ozlinx.com.au

www.smashanimation.com

A simple for one when the camera is roughly horizontal is the following:

vector $up = <>;

particleShape1.spriteTwistPP = rad_to_deg(angle(particleShape1.velocity, $up));

///this will point the sprite yaxis in the direction of motion

/*In theory there is no difference between theory and practice
In practice they are very different*/