Navigation
API > API/Plugins > API/Plugins/GameplayCameras
A utility class for math operations pertaining to aiming a camera at something.
| Name | FCameraAimingMath |
| Type | class |
| Header File | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/Math/CameraAimingMath.h |
| Include Path | #include "Math/CameraAimingMath.h" |
Syntax
class FCameraAimingMath
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static ECameraAimingResult ComputeCorrection
(
const FCameraNodeEvaluationResult& Result, |
Computes the rotation correction needed for the given camera to be aimed at the given target. | Math/CameraAimingMath.h | |
static bool ComputeTwoBonesCorrection
(
const FCameraPose& CurrentPose, |
Computes the rotation correction needed for the given camera to be aimed at the given target. | Math/CameraAimingMath.h | |
static bool ComputeTwoBonesCorrection
(
const FCameraPose& CurrentPose, |
As per the other ComputeTwoBonesCorrection function, but take into account an additional angular offset for the camera's line of sight. | Math/CameraAimingMath.h | |
static bool ComputeTwoBonesCorrection
(
const FCameraPose& CurrentPose, |
Math/CameraAimingMath.h | ||
static const FCameraRigJoint * FindPivotJoint
(
const FCameraNodeEvaluationResult& Result |
Finds the pivot joint in the given evaluation result. | Math/CameraAimingMath.h | |
static const FCameraRigJoint * FindPivotJoint
(
const FCameraRigJoints& CameraRigJoints |
Finds the pivot joint in the given camera rig joints. | Math/CameraAimingMath.h | |
static double GetAngleBetween
(
const FVector3d& AimA, |
Computes the difference between two aim vectors. | Math/CameraAimingMath.h | |
static FRotator3d GetNoRollRotationBetween
(
const FVector3d& AimA, |
Computes the rotation between two aim vectors, using only yaw and pitch. | Math/CameraAimingMath.h | |
static FRotator3d GetRotationBetween
(
const FVector3d& AimA, |
Computes the rotation between two aim vectors. | Math/CameraAimingMath.h | |
static bool RaySphereIntersectExit
(
const FRay3d& Ray, |
Math/CameraAimingMath.h | ||
static bool RaySphereIntersectExit
(
const FVector3d& RayStart, |
Math/CameraAimingMath.h |