maxguy Posted May 3, 2004 Share Posted May 3, 2004 hi guys, Just started to work on characters,created a setup for a 2 legged character,Im planning a walk cycle for it!I am using sine expression to move the legs. (abs(sin($F*$FRE))*$AM)-----FRE is frequency and AM is amplitude, But its moving backwards,since it absolute value,I tried giving it a phase value..but could not make it move forward,any guys have suggestions for this one?Please let me know where to give the phase value in this expression! Max Quote Link to comment Share on other sites More sharing options...
stevenong Posted May 3, 2004 Share Posted May 3, 2004 Hey there, I think adding a negative to your expression should work. -(abs(sin($F*$FRE))*$AM) Cheers! steven Quote Link to comment Share on other sites More sharing options...
maxguy Posted May 3, 2004 Author Share Posted May 3, 2004 hi, I added the negative,the sin curve is flipped in the negative direction and tried giving a phase value also,but still not able to figure out! Max Quote Link to comment Share on other sites More sharing options...
stevenong Posted May 3, 2004 Share Posted May 3, 2004 Hey Max, Is it possible to post the hip file? Zip it up & upload the file if it's small enough. Else, please send me a private message & we'll take it from there. Cheers! steven Quote Link to comment Share on other sites More sharing options...
deecue Posted May 4, 2004 Share Posted May 4, 2004 the phase of your sin wave will always be within your theta [i.e. sin(theta)].. how much you want to offset the phase will be based on your frequency. if you want to just set the phase 180 degrees off, use cos instead of sin. if you want to set the phase off by howevermuch, then just add a value to your theta. i.e. (abs(sin($F*$FRE+$PHASE))*$AM) where the global variable "PHASE" can be adjusted to offset the phase of the wave. how much you want it to offset will be based on your frequency (increase the frequency, the less value for the phase you would need to come back 360 degrees).. hth, dave 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.