replaced radians on degrees

This commit is contained in:
RomanDonw 2026-03-04 19:45:21 +10:00
parent 1de10e751d
commit 563b210500
2 changed files with 3 additions and 3 deletions

View file

@ -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));