From 30264e06943cd6015e3dc4a47c225b39b7c209dc Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Wed, 15 Feb 2023 10:23:36 -0800 Subject: [PATCH] Add CAABoxCollisionTree (CLSN) --- CAABoxCollisionTree.bt | 66 ++++++++++++++++++++++++++++++++++++++++++ CTransform4f.bt | 20 +++++++++++++ Run.bt | 4 +++ 3 files changed, 90 insertions(+) create mode 100644 CAABoxCollisionTree.bt create mode 100644 CTransform4f.bt diff --git a/CAABoxCollisionTree.bt b/CAABoxCollisionTree.bt new file mode 100644 index 0000000..c41632e --- /dev/null +++ b/CAABoxCollisionTree.bt @@ -0,0 +1,66 @@ +#ifndef _CAABOXCOLLISIONTREE +#define _CAABOXCOLLISIONTREE + +#include "CTransform4f.bt" + +struct CCollisionMaterial { + uint orientation; + uint materialType; + uint worldType; + uint behaviorList; + uint filterList; +}; + +struct CIndexedTriangle { + uint idx1; + uint idx2; + uint idx3; + ushort material; + ushort unk2; +}; + +struct CollisionMaterialVector { + uint count; + CCollisionMaterial collisionMaterials[count]; +}; + +struct VertexVector { + uint count; + CVector3f vertices[count]; +}; + +struct IndexedTriangleVector { + uint count; + CIndexedTriangle tris[count]; +}; + +struct ModConData { + char id[16]; + CTransform4f xf; + ushort unk; +}; + +struct CAABoxCollisionTree(uint64 size) { + local uint64 start