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.
Use “FindLookAtRotation”, with the location of lamp and the player as the 2 inputs.
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.)