diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-11-14 21:13:32 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-11-15 18:51:35 +0100 |
commit | a6f5f4634c63a515196a0f650682953356cb8e18 (patch) | |
tree | 806ca1627dbab6626634822037688aff376038c2 /src/collision/ColModel.h | |
parent | Merge pull request #797 from theR4K/master (diff) | |
download | re3-a6f5f4634c63a515196a0f650682953356cb8e18.tar re3-a6f5f4634c63a515196a0f650682953356cb8e18.tar.gz re3-a6f5f4634c63a515196a0f650682953356cb8e18.tar.bz2 re3-a6f5f4634c63a515196a0f650682953356cb8e18.tar.lz re3-a6f5f4634c63a515196a0f650682953356cb8e18.tar.xz re3-a6f5f4634c63a515196a0f650682953356cb8e18.tar.zst re3-a6f5f4634c63a515196a0f650682953356cb8e18.zip |
Diffstat (limited to 'src/collision/ColModel.h')
-rw-r--r-- | src/collision/ColModel.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/collision/ColModel.h b/src/collision/ColModel.h new file mode 100644 index 00000000..7dcdfa4d --- /dev/null +++ b/src/collision/ColModel.h @@ -0,0 +1,37 @@ +#pragma once + +#include "templates.h" +#include "ColBox.h" +#include "ColSphere.h" +#include "ColLine.h" +#include "ColPoint.h" +#include "ColTriangle.h" + +struct CColModel +{ + CColSphere boundingSphere; + CColBox boundingBox; + int16 numSpheres; + int16 numLines; + int16 numBoxes; + int16 numTriangles; + int32 level; + bool ownsCollisionVolumes; // missing on PS2 + CColSphere *spheres; + CColLine *lines; + CColBox *boxes; + CompressedVector *vertices; + CColTriangle *triangles; + CColTrianglePlane *trianglePlanes; + + CColModel(void); + ~CColModel(void); + void RemoveCollisionVolumes(void); + void CalculateTrianglePlanes(void); + void RemoveTrianglePlanes(void); + CLink<CColModel*> *GetLinkPtr(void); + void SetLinkPtr(CLink<CColModel*>*); + void GetTrianglePoint(CVector &v, int i) const; + + CColModel& operator=(const CColModel& other); +};
\ No newline at end of file |