- document coord related functions (mostly unused by the game)

- renamed code_B7B20.c to coords.c
- removed the exception for asm/core1/code_1E820.s from .gitignore file (should not be in the work tree)
This commit is contained in:
mariob92
2024-09-19 16:52:55 +02:00
parent fbe20325c2
commit 03afd57a54
8 changed files with 105 additions and 84 deletions

View File

@@ -3,6 +3,7 @@
#include "variables.h"
#include "core2/modelRender.h"
#include "core2/coords.h"
extern UNK_TYPE(s32) func_802E8E88(BKCollisionList *, BKVertexList *, f32[3], f32[3], f32, f32[3], s32, s32);
extern UNK_TYPE(s32) func_802E92AC(BKCollisionList *, BKVertexList *, f32[3], f32, f32[3], s32);
@@ -400,7 +401,7 @@ struct5Bs *func_803097A0(void){
void mapModel_getCubeBounds(s32 min[3], s32 max[3]) {
vtxList_getBounds_s32(model_getVtxList(mapModel.model_bin_opa), min, max);
func_8033ECD8(min, max, 1000);
coords_scale(min, max, 1000);
min[0] = min[0] + mapModel.description->unk6[0];
min[1] = min[1] + mapModel.description->unk6[1];
min[2] = min[2] + mapModel.description->unk6[2];