|
Yasiu Math 1
Collection of mathematic functions that help create game mechanics and procedural tools
|
BP Function library related to rotation and angles. More...
#include <BPFunLib_Rotation.h>
Static Public Member Functions | |
| static double | ClipAngleToCycle (double angle, double period) |
| Normalize angle to range <0, period>. Unit independent. | |
| 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. | |
BP Function library related to rotation and angles.
|
static |
Normalize angle to range <0, period>. Unit independent.
Normalization removes any excess periods.
Angle can be negative. Period must be > 0
|
static |
Rotate Box and calculate new bounding box along same axes to fix old box inside.213123.
Helps find suboptimal bounding box for rotated meshes
| BoxSize | Dimension of Bounding box |
| Rotation | Rotation to calculate |
|
static |
Adjust rotator yaw and pitch and keeps roll 0.
| CurrentRotator | |
| YawChange | |
| PitchChange | |
| PitchLimit | Limits pitch value to <-PitchLimit, PitchLimit> |