This commit is contained in:
Asuro
2025-03-01 14:52:28 +01:00
parent f7c01cb7b5
commit 467a4a0491
3 changed files with 23 additions and 6 deletions

View File

@@ -141,7 +141,8 @@ Vec3 Transform::LocalToGlobalDirection(Vec3 local)
UpdateMatrix();
float in[4]{local.x, local.y, local.z, 0.0f};
float out[4]{0.0f};
bx::vec4MulMtx(out, in, M.M);
Mat4 test = M.Transpose();
bx::vec4MulMtx(out, in, test.M);
return {out[0], out[1], out[2]};
}
bx::Vec3 Transform::LocalToGlobalPoint(bx::Vec3 local)