Rotate Vector

From Augmotic Library
< Unreal‎ | API
A Vector to be rotated.
B Rotator to apply to the Vector.
Return Value Newly rotated Vector.
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


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.


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.