View Full Version : twistPP
ruchitinfushion 10-07-2009, 02:49 PM hello,everybody in my scene i have only one single particle at origin created using particle sketch tool.Now i want to give motion to this particle like this way.
*constant linear motion in y axis
*and in x & z axis i want clockwise motion.
So,tell me how can i do this with the help of PP expression.For more info see the below image.And curve is represent the motion which i want using expression.Thank you.
http://i410.photobucket.com/albums/pp186/ruchitinfushion/TwistingPP.jpg?t=1254926932
|
|
rxgeez
10-07-2009, 04:25 PM
runtime expression:
particleShape1.position = <<sin(time*4), time, cos(time*4)>>;
ruchitinfushion
10-07-2009, 04:53 PM
Hey,thnx for reply.Later i will check.And also tell me wht to do if i want to increase and decrease radius.
__________________________________________________
Secret Is Still Hidden
rxgeez
10-07-2009, 05:42 PM
float $moveUpSpeed = 2;
float $rotationSpeed = 3;
float $rotationRadius = 5;
particleShape1.position = <<(sin(time*$rotationSpeed))*$rotationRadius, time*$moveUpSpeed, (cos(time*$rotationSpeed))*$rotationRadius>>;
ruchitinfushion
10-07-2009, 06:03 PM
Hey,hurray thnx very much.
ruchitinfushion
10-08-2009, 02:46 PM
Hello,plz i want little bit more update to this expression.suppose if my particle is @ other coordinates point and not @ origin then how can i get same kind of motion.Thank You
__________________________________________________
Secret Is Still Hidden
efecto
10-08-2009, 03:19 PM
Hello,plz i want little bit more update to this expression.suppose if my particle is @ other coordinates point and not @ origin then how can i get same kind of motion.Thank You
__________________________________________________
Secret Is Still Hidden
in creation:
vector $pos = particleShape2.position;
particleShape1.position = <<$pos.x,$pos.y,$pos.z>>;
in runtime:
float $moveUpSpeed = 2;
float $rotationSpeed = 3;
float $rotationRadius = 5;
particleShape1.position += <<(sin(time*$rotationSpeed))*$rotationRadius, $moveUpSpeed, (cos(time*$rotationSpeed))*$rotationRadius>>;
ruchitinfushion
10-08-2009, 03:40 PM
Ok,thnx again .i will try later when i come back to home.
CGTalk Moderation
10-08-2009, 03:40 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.