Implements GJK collision detection

Adds GJK algorithm implementation for detecting collisions between mesh colliders.

Includes mesh collider definition and unit tests for basic collision detection.

Provides a foundation for more complex collision handling and physics interactions.
This commit is contained in:
2025-11-09 14:04:01 +03:00
parent 6873f355b8
commit 8f054316fc
6 changed files with 315 additions and 0 deletions

View File

@@ -216,6 +216,11 @@ namespace omath
return sum_2d() + z;
}
[[nodiscard]]
bool point_to_same_direction(const Vector3& other)
{
return dot(other) > static_cast<Type>(0);
}
[[nodiscard]] std::expected<Angle<float, 0.f, 180.f, AngleFlags::Clamped>, Vector3Error>
angle_between(const Vector3& other) const noexcept
{