mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
improved line trace and box primitive
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace omath::collision
|
||||
public:
|
||||
Vector3<float> start;
|
||||
Vector3<float> end;
|
||||
|
||||
bool infinite_length = false;
|
||||
[[nodiscard]]
|
||||
Vector3<float> DirectionVector() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user