summaryrefslogtreecommitdiffstats
path: root/src/collision/ColBox.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-11-16 10:48:28 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-11-16 10:48:28 +0100
commited5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf (patch)
treea566f4b1ac8ac55d2b00ec6fa750ef743708bc3d /src/collision/ColBox.cpp
parentlcs car ctrl 1 (diff)
parentsmall fix of fix (diff)
downloadre3-ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf.tar
re3-ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf.tar.gz
re3-ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf.tar.bz2
re3-ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf.tar.lz
re3-ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf.tar.xz
re3-ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf.tar.zst
re3-ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf.zip
Diffstat (limited to 'src/collision/ColBox.cpp')
-rw-r--r--src/collision/ColBox.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/collision/ColBox.cpp b/src/collision/ColBox.cpp
new file mode 100644
index 00000000..53cba88b
--- /dev/null
+++ b/src/collision/ColBox.cpp
@@ -0,0 +1,21 @@
+#include "common.h"
+#include "ColBox.h"
+
+void
+CColBox::Set(const CVector &min, const CVector &max, uint8 surf, uint8 piece)
+{
+ this->min = min;
+ this->max = max;
+ this->surface = surf;
+ this->piece = piece;
+}
+
+CColBox&
+CColBox::operator=(const CColBox& other)
+{
+ min = other.min;
+ max = other.max;
+ surface = other.surface;
+ piece = other.piece;
+ return *this;
+} \ No newline at end of file