mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
refactor Entities load + loading velocity
This commit is contained in:
parent
3cd0261f3b
commit
19c6a82ab2
6 changed files with 41 additions and 24 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue