FRotationMatrix offers matrix construction using a series of ::Make* routines. They are easy to use and useful to get one object to face another. Say you have two objects, one of which is following the other. We want the rotation of the follower to always be facing what it is following. The construction methods of FRotationMatrix make this easy to do.
API – rotation using FRotationMatrix to have one object face another
Getting ready
Have two actors in a scene, one of which should face the other.
How to do it...
- Add a new C++ Actor Component for the follower called...