From 8dc353535fda6133ff120933072e725375c42afb Mon Sep 17 00:00:00 2001 From: mattkae Date: Sun, 6 Feb 2022 17:17:55 -0500 Subject: Fixed the SAT collision code --- shared_cpp/mathlib.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shared_cpp/mathlib.cpp') diff --git a/shared_cpp/mathlib.cpp b/shared_cpp/mathlib.cpp index c9f2e0d..17f9f84 100644 --- a/shared_cpp/mathlib.cpp +++ b/shared_cpp/mathlib.cpp @@ -210,6 +210,10 @@ float Vector3::operator [](int index) { } } +void Vector2::operator=(const Vector4& other) { + x = other.x; + y = other.y; +} void Vector3::printDebug(const char* name) { printf("%s=Vector3(%f, %f, %f)\n", name, x, y, z); -- cgit v1.2.1