improved line trace and box primitive

This commit is contained in:
2025-04-18 13:56:08 +03:00
parent a340766348
commit 8bf0bb8e0d
4 changed files with 43 additions and 21 deletions

View File

@@ -11,7 +11,7 @@
namespace omath::primitives
{
[[nodiscard]]
std::array<Triangle<Vector3<float>>, 8> CreateBox(const Vector3<float>& top, const Vector3<float>& bottom,
std::array<Triangle<Vector3<float>>, 12> CreateBox(const Vector3<float>& top, const Vector3<float>& bottom,
const Vector3<float>& dirForward, const Vector3<float>& dirRight,
float ratio = 4.f);
}

View File

@@ -13,7 +13,7 @@ namespace omath::collision
public:
Vector3<float> start;
Vector3<float> end;
bool infinite_length = false;
[[nodiscard]]
Vector3<float> DirectionVector() const;