View Full Version : How to rotate sprites over time?
dr_bob 03-17-2003, 05:37 PM Hi
I was wondering if anyone could fill me in on how to spin sprites as they are emitted? I could write an expression to rotate them over time, but which attribute controls this particular motion?
Thanks in advance.
S.
|
|
svenip
03-17-2003, 05:44 PM
spriteTwistPP.
first create this attr, you can find it in the attr list.
then basicly a good way is to do that :
create a PP Attribute : endSpriteTwistPP
creationExpression :
endSpriteTwistPP = rand(... , ....) // put in your values. i tend to use -360,360
runtime :
spriteTwistPP = smoothstep(0,lifespanPP,age) * endSpriteTwistPP;
this all assumes that you deal with lifespanPP, so set your lifespan to PP onlu and assign a value in the creationexpression like :
lifespanPP = rand(.... ,....);
CGTalk Moderation
01-14-2006, 04: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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.