Announcement

Collapse
No announcement yet.

Rotate a Cube with Finger

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Rotate a Cube with Finger

    Hi
    There is a cube in the center of iPad screen, i'm trying make this cube rotate following my finger direction, all i need:
    some guides, How to do this with blueprint ?

    #2
    Just use a slider on UMG to adjust it's rotation based on the slider position. You can style the slider to be invisible and overlay where the cube is, just make it reset to zero once it hits 360.

    Comment


      #3
      Originally posted by ZoltanJr View Post
      Just use a slider on UMG to adjust it's rotation based on the slider position. You can style the slider to be invisible and overlay where the cube is, just make it reset to zero once it hits 360.
      Yes, but you'll probably want to add the sliders value to the rotation, which means you'll need to move the slider's 0 point to where you place your finger down at each time you touch the screen.
      Marketplace Assets

      Advanced Mobile Input: Marketplace Page | Support Thread ――― Easy Input Remapping: Marketplace Page | Support Thread
      Multiplayer Blueprint Chat System: Marketplace Page | Support Thread ――― Closing Credits System: Marketplace Page | Support Thread
      Minesweeper Template: Marketplace Page | Support Thread ――― Maze Creator: Marketplace Page | Support Thread

      Comment


        #4
        I' trying rotate the cube with touch by another way, I hope know I'm thinking good or not:
        1- save first touch position in a variable
        2- save end touch position in a variable
        3- using first and end positions to get touch direction
        4- then cube use touch direction in step 3 to rotate

        Comment


          #5
          No Answer

          Comment

          Working...
          X