Add seperation between ROTMATRIX and TRANSFERVECTOR

This commit is contained in:
Jaby
2024-04-02 23:40:22 -05:00
committed by Jaby
parent ce37c3d26c
commit c897f39e91
7 changed files with 73 additions and 132 deletions

View File

@@ -30,10 +30,10 @@ namespace GTETest {
return true;
}
auto matrix = GTE::MATRIX::rotation(0, 0, rotation);
matrix.trans[0] = (Assets::Main::DoenerFishInfo.size.width/2);
matrix.trans[1] = (Assets::Main::DoenerFishInfo.size.height/2);
const auto matrix = GTE::MATRIX{
GTE::ROTMATRIX::rotated(-rotation, rotation, -rotation),
GTE::TRANSFERVECTOR::translated((Assets::Main::DoenerFishInfo.size.width/2), (Assets::Main::DoenerFishInfo.size.height/2))
};
doener_fish.apply(matrix);
rotation += 5_DEG;
return false;