Announcement

Collapse
No announcement yet.

Turn Turret to the other side With MouseAim

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

    Turn Turret to the other side With MouseAim


    Hi guys, I'm trying to turn the Turret(SpriteBlue)to the left side but I can not in doing so it returns like a mirror to the right side. Here my Blueprint. Thanks .



    #2
    You don't really need using raycast in this case , and if you are working on a XZ plane , here is a way to get the correct rotation :

    Click image for larger version

Name:	test472.PNG
Views:	14
Size:	121.6 KB
ID:	1430557
    Website [ LINK ]
    Twitter [ LINK ]
    Support ! [ LINK ]

    Comment


      #3

      Hi, thanks, the Turret rotation is perfect, but now the Aim is in the opposite position of the Turret ,
      how can I solve that. Thankss


      .


      Comment


        #4
        either turn the turrent around in your blueprint or multiply your result by -1
        My Game Frontier Devblog HERE

        Comment


          #5
          Originally posted by Both777 View Post
          Hi, thanks, the Turret rotation is perfect, but now the Aim is in the opposite position of the Turret ,
          how can I solve that. Thankss


          .

          Ops ! change the direction to ( MouseLocation - PawnLocation)
          Website [ LINK ]
          Twitter [ LINK ]
          Support ! [ LINK ]

          Comment


            #6
            Perfect This Work , Thanks Guys , I leave the solucion here .
            to help someone else

            Comment

            Working...
            X