refactor Entities load + loading velocity

This commit is contained in:
MihailRis
2024-07-08 22:47:01 +03:00
parent 3cd0261f3b
commit 19c6a82ab2
6 changed files with 40 additions and 23 deletions
+1 -4
View File
@@ -37,10 +37,7 @@ static int l_spawn(lua::State* L) {
if (lua::gettop(L) > 2) {
args = lua::tovalue(L, 3);
}
Transform transform {
pos, glm::vec3(1.0f), glm::mat3(1.0f), {}, true
};
level->entities->spawn(def, transform, args);
level->entities->spawn(def, pos, args);
return 1;
}