Jump to content
Search Community

walk cycle with convert coordinates

sonia90 test
Moderator Tag

Recommended Posts

I've seen this codepen demo on GSAP 3 convertCoordinates() and I thought that it could be apply to simulate a walk cycle.

But the problem is that I'm a begginer and I can't convert this mouvement into code.

Any help or tips on how you convert a movement into code would be greatly appreciated.

Thanks

See the Pen GRJEGzB by GreenSock (@GreenSock) on CodePen

Link to comment
Share on other sites

I thought I could use it to position the knees dynamically. If we say that the red arm in the example represent the thigh and the blue arm the shin the junction between them the knee. I can move the thigh and the shin and convertCoordinates will calculate the knees position

Link to comment
Share on other sites

Oh, now I see what you mean. I suppose you could try it that way, sure. Seems a bit complicated but I'm not sure there's a simple way other than maybe nesting. Like you rotate the leg which has the lower leg nested, and you rotate the lower leg which has the foot nested in that, and rotate that as well, etc. So they're all connected in unison and you don't have to convert coordinates to move things and stay connected.  

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...