mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add mat4.from_quat(...) & update mat4.decompose(...)
This commit is contained in:
parent
2294690f29
commit
02c9c4ced3
16 changed files with 167 additions and 137 deletions
|
|
@ -34,7 +34,7 @@ static int l_name(lua::State* L) {
|
|||
}
|
||||
|
||||
static int getter_pos(lua::State* L, const Camera& camera) {
|
||||
return lua::pushvec3_arr(L, camera.position);
|
||||
return lua::pushvec3(L, camera.position);
|
||||
}
|
||||
|
||||
static void setter_pos(lua::State* L, Camera& camera, int idx) {
|
||||
|
|
@ -79,13 +79,13 @@ static void setter_flipped(lua::State* L, Camera& camera, int idx) {
|
|||
}
|
||||
|
||||
static int getter_front(lua::State* L, const Camera& camera) {
|
||||
return lua::pushvec3_arr(L, camera.front);
|
||||
return lua::pushvec3(L, camera.front);
|
||||
}
|
||||
static int getter_right(lua::State* L, const Camera& camera) {
|
||||
return lua::pushvec3_arr(L, camera.right);
|
||||
return lua::pushvec3(L, camera.right);
|
||||
}
|
||||
static int getter_up(lua::State* L, const Camera& camera) {
|
||||
return lua::pushvec3_arr(L, camera.up);
|
||||
return lua::pushvec3(L, camera.up);
|
||||
}
|
||||
|
||||
static int l_look_at(lua::State* L) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue