summaryrefslogtreecommitdiff
path: root/honey
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-05-07 22:12:00 -0500
committersanine <sanine.not@pm.me>2023-05-07 22:12:00 -0500
commit09fa1809ab285d41180a5767d8cf408855986129 (patch)
tree6c024ef9f0cf4b47983c9c5f7d2ad3114981b67e /honey
parent61f8813b0beb6228f99cf0ea80acee5f4cab063f (diff)
implement basic third-person camera
Diffstat (limited to 'honey')
-rw-r--r--honey/ecs-systems.lua2
-rw-r--r--honey/window.lua8
2 files changed, 9 insertions, 1 deletions
diff --git a/honey/ecs-systems.lua b/honey/ecs-systems.lua
index 3243d02..b468228 100644
--- a/honey/ecs-systems.lua
+++ b/honey/ecs-systems.lua
@@ -261,7 +261,7 @@ physics = function(params)
physics.angularVelocity = avel
if physics.maxAngularSpeed then
- ode.BodySetMaxAngularSpeed(physics.maxAngularSpeed)
+ ode.BodySetMaxAngularSpeed(body, physics.maxAngularSpeed)
end
physics._body = body
diff --git a/honey/window.lua b/honey/window.lua
index fa777d0..3b5d5c1 100644
--- a/honey/window.lua
+++ b/honey/window.lua
@@ -150,6 +150,14 @@ end
function Window.setKeyCallback(self, cb)
return glfw.SetKeyCallback(self.win, cb)
end
+function Window.setCursorPosCallback(self, cb)
+ return glfw.SetCursorPosCallback(self.win, cb)
+end
+
+
+function Window.setInputMode(self, mode, value)
+ return glfw.SetInputMode(self.win, mode, value)
+end
function Window.swapBuffers(self)