Jump to content

Expression help in character!


maxguy

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...