Lukich Posted September 10, 2009 Share Posted September 10, 2009 Hi. I am trying to control the particle rotation using chops, by exporting the rotx, roty, rotz, and rotangle to chops and adding to them a Ramp wave. It works, but for some reason instead of a uniform motion that I'd expect from a Ramp, I get a faster movement at the beginning, which drastically slows down towards the end. I have no idea why it'd behave like that, maybe you guys can point me in the right direction? I'm attaching an example file. Thanks, Luka chopRotation.hip.zip Quote Link to comment Share on other sites More sharing options...
stabby Posted September 15, 2009 Share Posted September 15, 2009 The 'rot' attribute is a quaternion, and the 4 numbers don't correspond directly to $rotx, $roty, $rotz and $rota. The actual equations are: rot[0] = rotx * sin(rota/2) rot[1] = roty * sin(rota/2) rot[2] = rotz * sin(rota/2) rot[3] = cos(rota/2) (this is assuming your axis is already normalized) Hi. I am trying to control the particle rotation using chops, by exporting the rotx, roty, rotz, and rotangle to chops and adding to them a Ramp wave. It works, but for some reason instead of a uniform motion that I'd expect from a Ramp, I get a faster movement at the beginning, which drastically slows down towards the end. I have no idea why it'd behave like that, maybe you guys can point me in the right direction? I'm attaching an example file. Thanks, Luka Quote Link to comment Share on other sites More sharing options...
Lukich Posted September 15, 2009 Author Share Posted September 15, 2009 I eventually figured out how to do it with chops, but thanks a lot for your response, it's good to know this math, will come in handy. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.