Announcement

Collapse
No announcement yet.

Rotate Player mesh to mouse position

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

  • replied
    Hey, thanks to you guys.

    I figured out that the Spring arm was the issue. Once I positioned it properly then it started working.
    Thanks again, guys!!

    Now, on to the hard parts.

    Leave a comment:


  • replied
    In cases like this I always use TraceLine node for visualization of how my vectors really look like.
    So add traceline by channel there to show that start and target points.

    You also could use trace line to find exactly what is under mouse and look at that point.

    Ps. for better finding out how those debug trace lines look set them to permanent, make few traces then eject and see from spectator perspective.

    Leave a comment:


  • replied
    Thank you for the help.
    Your project works very well, however, I wonder how it works on a 3/4 top down view.

    I modded it and noticed that the actor didn't move relative to camera position, I have that same problem.
    Do you know any solution to that?

    Thanks

    Leave a comment:


  • replied
    Look at my top/down fps template

    Leave a comment:


  • started a topic Rotate Player mesh to mouse position

    Rotate Player mesh to mouse position

    Hi all,

    I need to rotate the pawn mesh to the mouse position on screen.
    Here is what I have so far.

    Click image for larger version

Name:	rotToCam.JPG
Views:	1
Size:	103.1 KB
ID:	1147753

    However, when I move using WASD, the mesh's rotates opposite to the pawn's direction. It's blue arrow looks like a tail.
    This makes aiming really hard to do.
    Click image for larger version

Name:	afasdf.JPG
Views:	1
Size:	74.7 KB
ID:	1147754

    Any help would be greatly appreciated.

    Thank you.
Working...
X