Announcement

Collapse
No announcement yet.

Make Rotator From Z Vector

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

    Make Rotator From Z Vector

    I'm trying to get the included ceiling lamp to rotate around the x-axis to face the player. The view is from a side-scroller perspective. I've created a vector from the celing lamp to the player's position below and would now like to create a rotator out of it. I've used the blueprint office's security camera tracking as a basis but that uses the "make from X" vector function but I cant figure out how to get my rotator from my vector.

    #2
    Use "FindLookAtRotation", with the location of lamp and the player as the 2 inputs.

    Comment


      #3
      That worked for me, thanks. Make from X and Rotation From XVector also worked after I zeroed the rotation on my mesh component, which naturally meant that the actor's rotation was different from the mesh's (that was the physical representation of my actor.)

      Comment

      Working...
      X