Announcement

Collapse
No announcement yet.

Find Look At Rotation - adverse results on pitch

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

    Find Look At Rotation - adverse results on pitch

    Hello,
    I've been tinkering around with making characters look at a target through using the Find Look At Rotation node to rotate the head bone. So far, the yaw (head tilting left and right) has been successful, but the pitch (up and down) has created an issue I don't know how to resolve. When the character is facing towards the destined location, the character's head will look at it with no problem. However, when the character is facing 180 degrees away from it, the pitch will 'invert', making the head look up when it should be down etc.

    Pictures (the actor's rotation is printed btw):

    correct
    Click image for larger version

Name:	Yodmpi9.png
Views:	1
Size:	645.3 KB
ID:	1175397
    Incorrect
    Click image for larger version

Name:	gzV5IGc.png
Views:	1
Size:	669.2 KB
ID:	1175398

    I'm not too worried about head limitations right now, I just want it to be working at all angles so I can limit unwanted movement out later.

    Any ideas how this issue can be solved?

    Thanks,
    Lolon

    #2
    Bump because I still haven't got it sorted.

    Comment


      #3
      Could it be caused by a constraint in your skeleton?

      Comment


        #4
        Your post is very vague and I have no idea what you did to get this result, but I am going to assume you got the head rotation by bone transform inside the animation blueprint, is the rotation mode set properly? To me it would appear you used world space instead of componnent space.

        Comment


          #5
          Can you include the object being looked at in the picture? It could be an issue with being too close/right on top of the target.

          Also, you probably want to start fixing this WITH the head rotation limits already built in. I suspect once you include it, it will either (1) cause bugs you didnt have without it and/or (2) fix bugs you would get without it implemented yet.
          Need another dev on your UE4 project? Send me a shoutout and I'll lend a hand

          Comment


            #6
            Hi, don't mean to hijack but I think I'm experiencing a similar issue--my character has no problem looking at characters that are on the positive X axis, but if my character is facing the other way, things start to get messy (head looks up instead of down, etc): https://youtu.be/wXUnWS9o6Ew

            Here's (I think) the relevant part of my anim blueprint:
            Click image for larger version

Name:	lookAtRotation.jpg
Views:	1
Size:	246.7 KB
ID:	1102026

            Comment


              #7
              The point the character is looking at is at is 0,0,0. I have made it look at other locations so it doesn't seem to be that.
              point taken! Ill see if I can implement them in then.

              Comment


                #8
                I believe the skeleton doesn't have any constraints right now.

                Comment


                  #9
                  Sorry for the vagueness, It was a transform (modify) bone node from inside the blueprint. When i set the rotation mode from world space to component space the roll didn't seem to do anything, though i'm looking into it.

                  Comment

                  Working...
                  X