summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-03-01 18:04:13 +0100
committeraura <nw@moneybot.cc>2026-03-01 18:04:13 +0100
commitda27ee18bef82c2152e348e8ff805cb64c80643e (patch)
tree795e8161b4451bec2ef20b62e197aa1df727bc75 /src/util
parent78db9dd151f7c7719787a7e092f0c34ae6b85179 (diff)
fix ramps make movement s m o o t h
Diffstat (limited to 'src/util')
-rw-r--r--src/util/vector.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/vector.h b/src/util/vector.h
index d492e8d..6065343 100644
--- a/src/util/vector.h
+++ b/src/util/vector.h
@@ -54,6 +54,7 @@ struct VEC3 {
VEC3( const VEC2& v ) { x = v.x; y = v.y; z = 0.f; }
+ bool operator==( const VEC3& v ) const { return ( x == v.x && y == v.y && z == v.z ); }
VEC3& operator=( const VEC3& v ) { x = v.x; y = v.y; z = v.z; return *this; }
F32& operator[]( I32 i ) { return ( (F32*)this )[i]; }
F32 operator[]( I32 i ) const { return ( (F32*)this )[i]; }