Rotate character on click

Discussion in 'How Can I...?' started by seven_tower, Jun 23, 2016.

  1. seven_tower

    seven_tower Boxer

    Joined:
    Oct 8, 2015
    Messages:
    1
    Likes Received:
    0
    Hey guys. I'm trying to figure out how I can get my character to rotate clockwise once you tap the screen. The screen is portrait and I want the character to spin when its near an object to hit it and make it move by rotating. Any ideas?

    The idea is that a triangular collider will hit objects as its spinning and move then in the direction of the angle of the collider.. if that makes sense?
     
    Last edited: Jun 23, 2016
  2. richardp11

    richardp11 Boxer

    Joined:
    Sep 25, 2015
    Messages:
    2
    Likes Received:
    0
    Hi,
    I have exactly the same in-game situation. I want my character to rotate 360 (to move some physics objects) but return to default so it's always the right way up afterwards with one tap.

    Any ideas?

    Thanks!
     
  3. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Not possible. You have to do it with an animation. Search the forum this was asked/answered several times.
     

Share This Page