Yasiu Math 1
Collection of mathematic functions that help create game mechanics and procedural tools
Loading...
Searching...
No Matches
BPFunLib_Rotation.h
1/*
2 * Copyright (c) 2026 Grzegorz Krug.
3 * All Rights Reserved.
4 */
5
6#pragma once
7
8
10
11
12#include "BPFunLib_Rotation.generated.h"
13
14
18UCLASS(BlueprintType)
20 GENERATED_BODY()
21
22
23public:
37 UFUNCTION(BlueprintCallable, Category = "YasiuMath|Angle")
38 static double ClipAngleToCycle( double angle, double period );
39
49 UFUNCTION(BlueprintCallable, Category = "YasiuMath|Angle")
50 static FVector RotateBoundingBox( const FVector& BoxSize, const FQuat& Rotation );
51
61 UFUNCTION(BlueprintCallable, Category = "YasiuMath|Angle")
62 static FRotator RotateCamera(
63 const FRotator& CurrentRotator,
64 float YawChange,
65 float PitchChange,
66 const float PitchLimit = 85
67 );
68};
BP Function library related to rotation and angles.
Definition BPFunLib_Rotation.h:19
static FVector RotateBoundingBox(const FVector &BoxSize, const FQuat &Rotation)
Rotate Box and calculate new bounding box along same axes to fix old box inside.213123.
static FRotator RotateCamera(const FRotator &CurrentRotator, float YawChange, float PitchChange, const float PitchLimit=85)
Adjust rotator yaw and pitch and keeps roll 0.
static double ClipAngleToCycle(double angle, double period)
Normalize angle to range <0, period>. Unit independent.
BP Function placeholder to group libraries in documentation.
Definition YasiuMathBPLibrary.h:29