Rotate Vector

From Augmotic Library
< Unreal‎ | API
Inputs
A Vector to be rotated.
B Rotator to apply to the Vector.
Outputs
Return Value Newly rotated Vector.
Inputs
V Vector to be rotated.
#include "Math/Rotator.h"
Header: /Engine/Source/Runtime/Core/Public/Math/Rotator.h
Source: /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp

Overview

Rotate Vector will take a designated Vector and apply a Rotation to it.

Useful when transforming one orientation to another or spinning a direction vector by an amount.

This is a more straightforward function usually used internally by others, adding extra features, such as rotating an object forward by a rotation.

Examples

Camera Rotation Based Movement

This will separate the camera's Z Rotation, and orient the player's movement controls to match the assumed forward of the camera.