diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-11-14 21:13:32 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-11-15 23:36:54 +0100 |
commit | 9bb8ebaa1011dc1dc70e3d5bf70c9a55c44b976c (patch) | |
tree | 3dcbab653ba34fa1fdc273887bd377603c4ff4f2 /src/collision/ColBox.h | |
parent | car AI revision (diff) | |
download | re3-9bb8ebaa1011dc1dc70e3d5bf70c9a55c44b976c.tar re3-9bb8ebaa1011dc1dc70e3d5bf70c9a55c44b976c.tar.gz re3-9bb8ebaa1011dc1dc70e3d5bf70c9a55c44b976c.tar.bz2 re3-9bb8ebaa1011dc1dc70e3d5bf70c9a55c44b976c.tar.lz re3-9bb8ebaa1011dc1dc70e3d5bf70c9a55c44b976c.tar.xz re3-9bb8ebaa1011dc1dc70e3d5bf70c9a55c44b976c.tar.zst re3-9bb8ebaa1011dc1dc70e3d5bf70c9a55c44b976c.zip |
Diffstat (limited to 'src/collision/ColBox.h')
-rw-r--r-- | src/collision/ColBox.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/collision/ColBox.h b/src/collision/ColBox.h new file mode 100644 index 00000000..0df55925 --- /dev/null +++ b/src/collision/ColBox.h @@ -0,0 +1,22 @@ +#pragma once + +#include "SurfaceTable.h" + +struct CBox +{ + CVector min; + CVector max; + CVector GetSize(void) { return max - min; } + void Set(const CVector &min, const CVector &max) { this->min = min; this->max = max; } +}; + +struct CColBox : public CBox +{ + uint8 surface; + uint8 piece; + + void Set(const CVector &min, const CVector &max, uint8 surf, uint8 piece); + using CBox::Set; + + CColBox& operator=(const CColBox &other); +};
\ No newline at end of file |