mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
replaced radians on degrees
This commit is contained in:
parent
1de10e751d
commit
563b210500
2 changed files with 3 additions and 3 deletions
|
|
@ -46,7 +46,7 @@ static int l_tostring(lua::State* L) {
|
|||
|
||||
static int l_from_euler(lua::State *L) {
|
||||
uint argc = lua::check_argc(L, 1, 2);
|
||||
glm::vec3 euler = lua::tovec3(L, 1);
|
||||
glm::vec3 euler = glm::radians(lua::tovec3(L, 1));
|
||||
|
||||
if (argc == 2) return lua::setquat(L, 2, glm::quat(euler));
|
||||
return lua::pushquat(L, glm::quat(euler));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue