Profile image

I have no idea anymore

19.7k Axartar  2.2 years ago

Im making a walking mech

I’m making a mech, called the paladin, in case anyone cared lol. And I’m using an equation for the knee joint, I can’t figure out what won’t work about it lol, thanks in advance for any help, it’s probably a dumb syntax mistype but here is the code/equation thing.

clamp(0.12(sin(Time*180)-cos(2(Time*180)))+round(abs(sin((Time*180)/4-2.7)-0.5*cos((Time*180)-2.7))-1),-1,1)

It’s also not very efficient I know and it doesn’t loop at 360 degrees, but I’m really hoping it will work.

Thanks!

  • Log in to leave a comment
  • Profile image
    19.7k Axartar

    @iic011 thanks lol, I ended up using a simpler solution which is part of the series to make a sawtooth wave and messing with it

    +1 2.2 years ago