Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added other collision types
  • Loading branch information
orange-cpp committed Nov 9, 2025
commit 44682b6f2c98023d3b20a994a6b4ddcd519c5573
12 changes: 12 additions & 0 deletions include/omath/engines/frostbite_engine/mesh.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Created by Vladislav on 09.11.2025.
//
#pragma once
#include "constants.hpp"
#include "omath/3d_primitives/mesh.hpp"
#include "traits/mesh_trait.hpp"

namespace omath::frostbite_engine
{
using Mesh = primitives::Mesh<Mat4X4, ViewAngles, MeshTrait, float>;
}
19 changes: 19 additions & 0 deletions include/omath/engines/frostbite_engine/traits/mesh_trait.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// Created by Vladislav on 09.11.2025.
//
#pragma once
#include <omath/engines/frostbite_engine/constants.hpp>
#include <omath/engines/frostbite_engine/formulas.hpp>

namespace omath::frostbite_engine
{
class MeshTrait final
{
public:
[[nodiscard]]
static Mat4X4 rotation_matrix(const ViewAngles& rotation)
{
return frostbite_engine::rotation_matrix(rotation);
}
};
} // namespace omath::frostbite_engine
12 changes: 12 additions & 0 deletions include/omath/engines/iw_engine/mesh.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Created by Vladislav on 09.11.2025.
//
#pragma once
#include "constants.hpp"
#include "omath/3d_primitives/mesh.hpp"
#include "traits/mesh_trait.hpp"

namespace omath::iw_engine
{
using Mesh = primitives::Mesh<Mat4X4, ViewAngles, MeshTrait, float>;
}
19 changes: 19 additions & 0 deletions include/omath/engines/iw_engine/traits/mesh_trait.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// Created by Vladislav on 09.11.2025.
//
#pragma once
#include <omath/engines/iw_engine/constants.hpp>
#include <omath/engines/iw_engine/formulas.hpp>

namespace omath::iw_engine
{
class MeshTrait final
{
public:
[[nodiscard]]
static Mat4X4 rotation_matrix(const ViewAngles& rotation)
{
return iw_engine::rotation_matrix(rotation);
}
};
} // namespace omath::iw_engine
12 changes: 12 additions & 0 deletions include/omath/engines/opengl_engine/mesh.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Created by Vladislav on 09.11.2025.
//
#pragma once
#include "constants.hpp"
#include "omath/3d_primitives/mesh.hpp"
#include "traits/mesh_trait.hpp"

namespace omath::opengl_engine
{
using Mesh = primitives::Mesh<Mat4X4, ViewAngles, MeshTrait, float>;
}
19 changes: 19 additions & 0 deletions include/omath/engines/opengl_engine/traits/mesh_trait.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// Created by Vladislav on 09.11.2025.
//
#pragma once
#include <omath/engines/opengl_engine/constants.hpp>
#include <omath/engines/opengl_engine/formulas.hpp>

namespace omath::opengl_engine
{
class MeshTrait final
{
public:
[[nodiscard]]
static Mat4X4 rotation_matrix(const ViewAngles& rotation)
{
return opengl_engine::rotation_matrix(rotation);
}
};
} // namespace omath::opengl_engine
3 changes: 2 additions & 1 deletion include/omath/engines/source_engine/traits/mesh_trait.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#pragma once
#include <omath/engines/source_engine/constants.hpp>
#include <omath/engines/source_engine/formulas.hpp>

namespace omath::source_engine
{
class MeshTrait final
Expand All @@ -15,4 +16,4 @@ namespace omath::source_engine
return source_engine::rotation_matrix(rotation);
}
};
}
} // namespace omath::source_engine
12 changes: 12 additions & 0 deletions include/omath/engines/unity_engine/mesh.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Created by Vladislav on 09.11.2025.
//
#pragma once
#include "constants.hpp"
#include "omath/3d_primitives/mesh.hpp"
#include "traits/mesh_trait.hpp"

namespace omath::unity_engine
{
using Mesh = primitives::Mesh<Mat4X4, ViewAngles, MeshTrait, float>;
}
19 changes: 19 additions & 0 deletions include/omath/engines/unity_engine/traits/mesh_trait.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// Created by Vladislav on 09.11.2025.
//
#pragma once
#include <omath/engines/unity_engine/constants.hpp>
#include <omath/engines/unity_engine/formulas.hpp>

namespace omath::unity_engine
{
class MeshTrait final
{
public:
[[nodiscard]]
static Mat4X4 rotation_matrix(const ViewAngles& rotation)
{
return unity_engine::rotation_matrix(rotation);
}
};
} // namespace omath::unity_engine
12 changes: 12 additions & 0 deletions include/omath/engines/unreal_engine/mesh.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Created by Vladislav on 09.11.2025.
//
#pragma once
#include "constants.hpp"
#include "omath/3d_primitives/mesh.hpp"
#include "traits/mesh_trait.hpp"

namespace omath::unreal_engine
{
using Mesh = primitives::Mesh<Mat4X4, ViewAngles, MeshTrait, float>;
}
19 changes: 19 additions & 0 deletions include/omath/engines/unreal_engine/traits/mesh_trait.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// Created by Vladislav on 09.11.2025.
//
#pragma once
#include <omath/engines/unreal_engine/constants.hpp>
#include <omath/engines/unreal_engine/formulas.hpp>

namespace omath::unreal_engine
{
class MeshTrait final
{
public:
[[nodiscard]]
static Mat4X4 rotation_matrix(const ViewAngles& rotation)
{
return unreal_engine::rotation_matrix(rotation);
}
};
} // namespace omath::unreal_engine
Loading