Rotate Dönerfisch

This commit is contained in:
2024-04-02 11:24:11 -05:00
parent 96b7963404
commit 53eacdae43
5 changed files with 101 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ namespace JabyEngine {
/*
RotTrans
Jaby: Can we use gte_stsv instead of gte_stlvnl for writing to a SVECTOR?
TODO: Can we use gte_stsv instead of gte_stlvnl for writing to a SVECTOR?
Do we have to use gte_stflg??
Look at: RotTransSV???

View File

@@ -32,6 +32,7 @@ namespace JabyEngine {
};
}
// TODO: Split MATRIX into ROTMATRIX and TRANSFERVECTOR or something like that. But first get it running
struct MATRIX {
int16_t rot[3][3]; // Rotation matrix
int32_t trans[3]; // Translation vector
@@ -46,6 +47,8 @@ namespace JabyEngine {
.trans = {0, 0, 0}
};
}
static MATRIX rotation(int32_t x, int32_t y, int32_t z);
};
using VECTOR = internal::VECTOR<int32_t>;