summaryrefslogtreecommitdiff
path: root/src/collision/ColLine.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-11-14 22:13:32 +0200
committerSergeanur <s.anureev@yandex.ua>2020-11-15 19:51:35 +0200
commita6f5f4634c63a515196a0f650682953356cb8e18 (patch)
tree806ca1627dbab6626634822037688aff376038c2 /src/collision/ColLine.h
parentbe205d960207a9a9f22cce6e99dbf4c39fb8d510 (diff)
Make collision code placement more like original (+ small fixes)
Diffstat (limited to 'src/collision/ColLine.h')
-rw-r--r--src/collision/ColLine.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/collision/ColLine.h b/src/collision/ColLine.h
new file mode 100644
index 00000000..21587a06
--- /dev/null
+++ b/src/collision/ColLine.h
@@ -0,0 +1,14 @@
+#pragma once
+
+struct CColLine
+{
+ // NB: this has to be compatible with two CVuVectors
+ CVector p0;
+ int pad0;
+ CVector p1;
+ int pad1;
+
+ CColLine(void) { };
+ CColLine(const CVector &p0, const CVector &p1) { this->p0 = p0; this->p1 = p1; };
+ void Set(const CVector &p0, const CVector &p1);
+}; \ No newline at end of file