-
Notifications
You must be signed in to change notification settings - Fork 3
Math
lnx00 edited this page Jun 6, 2023
·
4 revisions
Math utilities and functions that are commonly used.
-
.NormalizeAngle(angle)Normalizes an angle to be between -180 and 180. -
.RemapValClamped(val, A, B, C, D)Remaps a value from one range to another. -
.PositionAngles(source, dest)Calculates the EulerAngle between the source and destination vectors. -
.AngleFov(from, to)Calculates the FOV between the two angles. -
.SolveProjectile(origin, target, speed, gravity)Tries to find the angles needed to hit the target with a projectile (ballistic and straight).