add mat4.from_quat(...) & update mat4.decompose(...)

This commit is contained in:
MihailRis
2024-07-19 07:48:42 +03:00
parent 2294690f29
commit 02c9c4ced3
16 changed files with 167 additions and 137 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
static int l_get_pos(lua::State* L) {
if (auto entity = get_entity(L, 1)) {
return lua::pushvec3_arr(L, entity->getTransform().pos);
return lua::pushvec3(L, entity->getTransform().pos);
}
return 0;
}
@@ -18,7 +18,7 @@ static int l_set_pos(lua::State* L) {
static int l_get_size(lua::State* L) {
if (auto entity = get_entity(L, 1)) {
return lua::pushvec3_arr(L, entity->getTransform().size);
return lua::pushvec3(L, entity->getTransform().size);
}
return 0;
}