2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-06 08:42:35 +00:00

feat: load xmodels from GLTF and link them, xmodel collision not working yet.

This commit is contained in:
LJW-Dev
2026-03-20 10:54:30 +08:00
committed by Jan Laupetin
parent 7a9d1fa7cb
commit 7ea2ebedbb
8 changed files with 346 additions and 129 deletions
+3 -1
View File
@@ -16,7 +16,9 @@ namespace BSP
static vec3_t calcHalfSizeOfAABB(vec3_t& mins, vec3_t& maxs);
static size_t allignBy128(size_t size);
static float distBetweenPoints(vec3_t& p1, vec3_t& p2);
static void convertAnglesToAxis(vec3_t* angles, vec3_t* axis);
static void calculateXmodelBounds(XModel* xmodel, vec3_t axis[3], vec3_t& out_mins, vec3_t& out_maxs);
static void convertAnglesToAxis(vec3_t* angles, vec3_t axis[3]);
static void convertQuaternionToAxis(vec4_t* quat, vec3_t axis[3]);
static vec3_t convertForwardVectorToViewAngles(vec3_t& forwardVec);
static void matrixTranspose3x3(const vec3_t* in, vec3_t* out);
static vec3_t convertStringToVec3(std::string& str);