Swing like a metronome?

DookiDooki Member Posts: 247
edited November -1 in Working with GS (Mac)
Hey all, I'm trying to make a wall swing like a metronome. I took a stab at this but need help. I am using a Timer that controls rotate in clock and counter clock. Any advice?

- I need the wall to pivot where it touches the ground. (right it rotates about it's center.) How do you change pivot location?
- I need it to swing 159* and 45* back and forth. (like a metronome)

Thanks all!

Comments

  • rebumprebump Member Posts: 1,058
    See some of my demos. They rotate stuff about a point in various ways.
  • DookiDooki Member Posts: 247
    HEy Thanks rebump!

    The waving hand demo looks like what I'm aiming for!
  • rebumprebump Member Posts: 1,058
    The chainsaw in the chainsaw demo, the lightsaber in the lightsaber demo, and the shield in the frontal_shield demo all operate off similar principles as the hands in the wave demo but all the others but the hands are more true to what you want.

    You would just use the "circle" math in the chainsaw/lightsaber/frontal_shield demo and reduce the "distance" value to bring the one end of the chainsaw/lightsaber/shield in closer to the pivot point. As they are now, they are some distance from the pivot point to account for the presence of the circle/jedi/spaceship (respectively).

    The hands demo uses similar math to force the hand to point the correct way around the edge of the circle in the middle as well as rotate about an arc on the circle but techinally, if I recall, they still have some transparency where the arm should be...so maybe not the best solution for you if you will use collision on the pivoting wall of yours.
  • rebumprebump Member Posts: 1,058
    Long story short for the above post: hand waving is the illusion of a pivot point by way of an object sweeping an arc of a circle whereas the rest (if I recall correctly) actually pivot but at a distance from the pivot point. Hope that makes sense.
  • DookiDooki Member Posts: 247
    Hey thanks rebump.
    I think I get what you're saying. I'll give this a try.
Sign In or Register to comment.