CToolActor
Overview
Actor and camera rotation helpers.
Functions
| Name | Description |
|---|---|
| rotateToFace | Rotate an actor or camera to look at a target. Three overloads: camera-to-location (pitch+yaw), actor-to-location (yaw only), actor-to-actor. |
// Rotate camera to look at a world location (pitch + yaw)
rotateToFace(myCameraComponent, FVector(100, 200, 0));
// Rotate actor to face a world location (yaw only)
rotateToFace(myActor, FVector(100, 200, 0));
// Rotate actor to face another actor
rotateToFace(myActor, targetActor);