mirror of
https://github.com/orange-cpp/omath.git
synced 2026-06-09 16:54:35 +00:00
ddafd24ea6
Corrects namespace naming from unity_engine to unreal_engine. Adjusts projectile prediction and angle calculations for accuracy in Unreal Engine environments.
27 lines
882 B
C++
27 lines
882 B
C++
//
|
|
// Created by Vlad on 3/22/2025.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <omath/angle.hpp>
|
|
#include <omath/mat.hpp>
|
|
#include <omath/vector3.hpp>
|
|
#include <omath/view_angles.hpp>
|
|
|
|
namespace omath::unreal_engine
|
|
{
|
|
constexpr Vector3<float> k_abs_up = {0, 0, 1};
|
|
constexpr Vector3<float> k_abs_right = {0, 1, 0};
|
|
constexpr Vector3<float> k_abs_forward = {1, 0, 0};
|
|
|
|
using Mat4X4 = Mat<4, 4, float, MatStoreType::ROW_MAJOR>;
|
|
using Mat3X3 = Mat<4, 4, float, MatStoreType::ROW_MAJOR>;
|
|
using Mat1X3 = Mat<1, 3, float, MatStoreType::ROW_MAJOR>;
|
|
using PitchAngle = Angle<float, -90.f, 90.f, AngleFlags::Clamped>;
|
|
using YawAngle = Angle<float, -180.f, 180.f, AngleFlags::Normalized>;
|
|
using RollAngle = Angle<float, -180.f, 180.f, AngleFlags::Normalized>;
|
|
|
|
using ViewAngles = omath::ViewAngles<PitchAngle, YawAngle, RollAngle>;
|
|
} // namespace omath::unreal_engine
|