Help Needed With Rotating

I have four separate actors which form a square (each is a side). I need them to rotate both left and right together as if they were a square.

Comments

  • LumpAppsLumpApps Member Posts: 2,881
    edited November 2014

    Hi, I made a demo for you. Just touch the screen somewhere and drag. The actors will follow the angle from your touch to the center and also the distance from the center.
    Have a look at the code. There is some math but the rest is pretty simple so you should be able to implement that in your own project.

  • SocksSocks London, UK.Member Posts: 12,822
    edited November 2014

    Beaten to it by Lump !! : )

  • SocksSocks London, UK.Member Posts: 12,822
    edited November 2014

    . . . here's my interpretation:

    Link: https://www.mediafire.com/?41ttzu5ewdwam8s

    Drag the red controller left and right.

  • AA app companyAA app company Member Posts: 73

    Thankyou for your help @Socks @LumpApps . With your template @LumpApps how can I make it so that when you let go it stays where it is.

  • LumpAppsLumpApps Member Posts: 2,881

    (Not at a computer right now) you can put the Constrain x, y and such on a rule that does when mouse is up.

Sign In or Register to comment.