summaryrefslogtreecommitdiff
path: root/shared_cpp/mathlib.cpp
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-02-06 17:17:55 -0500
committermattkae <mattkae@protonmail.com>2022-02-06 17:17:55 -0500
commit8dc353535fda6133ff120933072e725375c42afb (patch)
treefdb26c5ee183190147b2e8f2816054bf68db6d7d /shared_cpp/mathlib.cpp
parente965ed809e91079496f5b2d711ceb3e5e7b99f3d (diff)
Fixed the SAT collision code
Diffstat (limited to 'shared_cpp/mathlib.cpp')
-rw-r--r--shared_cpp/mathlib.cpp4
1 files changed, 4 insertions, 0 deletions
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);