Platform rotate off center

simo103simo103 Member, PRO Posts: 1,331
edited November -1 in Working with GS (Mac)
Anyone know how I can make a platform rotate off center?

I want an object (weight) to fall on a platform near one end and near its pivot point. I want it to slowly rotate down at the short end and the long end to move up.

(I actually want the weight to slide slowly off the end so realistically it would speed up its rotation a bit as it moves away from the pivot but just getting a off-center rotate solution would help)

Comments

  • simo103simo103 Member, PRO Posts: 1,331
    thought I'd update my own post with the solution I came up with which works visually and may need some tweaking to work gameplay wise (that is unless the math geniuses out there want to thrown me a bone and tell me the complicated solution to this!)

    Anyway as has been suggested for other issues I used a longer image size where one side is transparent. So I actually have the pivot in the middle with 3 parts visible on one side and on the other I have one part visible and two parts invisible thus it appears to rotate off center. Then I added the square of the cos to the sin of pythagorus and there you have it! lol.
  • djmoyadjmoya Member Posts: 16
    Thanks for the update having a transparent png with the canvas width larger then the image then moved that image off center and have the part i wanted to pivot in the middle . It worked perfectly for what i was trying to do.
Sign In or Register to comment.