summaryrefslogtreecommitdiffstats
path: root/src/collision/ColSphere.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-02-01 10:57:55 +0100
committeraap <aap@papnet.eu>2021-02-01 10:57:55 +0100
commit3f60034c391fd5da66639e4a29f121f18ead6255 (patch)
treef7d5c6b8ac6c7fba1a7a499c600ea551653f6f23 /src/collision/ColSphere.h
parentfix realloc (diff)
downloadre3-3f60034c391fd5da66639e4a29f121f18ead6255.tar
re3-3f60034c391fd5da66639e4a29f121f18ead6255.tar.gz
re3-3f60034c391fd5da66639e4a29f121f18ead6255.tar.bz2
re3-3f60034c391fd5da66639e4a29f121f18ead6255.tar.lz
re3-3f60034c391fd5da66639e4a29f121f18ead6255.tar.xz
re3-3f60034c391fd5da66639e4a29f121f18ead6255.tar.zst
re3-3f60034c391fd5da66639e4a29f121f18ead6255.zip
Diffstat (limited to 'src/collision/ColSphere.h')
-rw-r--r--src/collision/ColSphere.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/collision/ColSphere.h b/src/collision/ColSphere.h
index f86b282a..3f18d8c0 100644
--- a/src/collision/ColSphere.h
+++ b/src/collision/ColSphere.h
@@ -2,10 +2,11 @@
#include "SurfaceTable.h"
-struct CSphere
+// TODO(LCS): maybe this was in a union with CVuVector? or is the alignment manual?
+struct TYPEALIGN(16) CSphere
{
// NB: this has to be compatible with a CVuVector
- CVector center;
+ RwV3d center;
float radius;
void Set(float radius, const CVector &center) { this->center = center; this->radius = radius; }
};