Implementing a Look At Up Function

Hi,

Most engines have a LookForwardUp( NewUp, NewForward) function which basically receives 2 vectors that will become the new Up vector and the new Forward vector of an object. How could I go about implementing such a function in c++ for UE4 actors?

Thanks,

Franco

Maybe look at Kismet Math Library. You may find what you want here :slight_smile:

Thanks Joris, I found it there. The answer is

FRotationMatrix::MakeFromXZ() where X is the forward and Z is the up.

Don’t forget to mark you question as resolved :wink: