add mat4.from_quat(...) & update mat4.decompose(...)
This commit is contained in:
@@ -334,7 +334,7 @@ static int l_audio_get_duration(lua::State* L) {
|
||||
static int l_audio_get_position(lua::State* L) {
|
||||
auto speaker = audio::get_speaker(lua::tointeger(L, 1));
|
||||
if (speaker != nullptr) {
|
||||
return lua::pushvec3(L, speaker->getPosition());
|
||||
return lua::pushvec3_stack(L, speaker->getPosition());
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -343,7 +343,7 @@ static int l_audio_get_position(lua::State* L) {
|
||||
static int l_audio_get_velocity(lua::State* L) {
|
||||
auto speaker = audio::get_speaker(lua::tointeger(L, 1));
|
||||
if (speaker != nullptr) {
|
||||
return lua::pushvec3(L, speaker->getVelocity());
|
||||
return lua::pushvec3_stack(L, speaker->getVelocity());
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user