Merge branch 'Math' of https://github.com/cNori/FlaxEngineFork into cNori-Math

This commit is contained in:
Wojtek Figat
2024-08-30 13:23:43 +02:00
9 changed files with 582 additions and 7 deletions

View File

@@ -660,6 +660,17 @@ public:
// @param roll The roll of rotation (in radians)
// @param result When the method completes, contains the newly created quaternion
static void RotationYawPitchRoll(float yaw, float pitch, float roll, Quaternion& result);
/// <summary>
/// Gets rotation from a normal in relation to a transform.<br/>
/// This function is especially useful for axis aligned faces,
/// and with <seealso cref="Physics::RayCast"/>.
/// </summary>
/// <param name="InNormal">The normal vector.</param>
/// <param name="InReferenceTransform">The reference transform.</param>
/// <returns>The rotation from the normal vector.</returns>
static Quaternion GetRotationFromNormal(const Vector3& InNormal, const Transform& InReferenceTransform);
};
/// <summary>