From e5553bb81c93cd76456d07d3a1d7e8bb1b249b6e Mon Sep 17 00:00:00 2001 From: sanine-a Date: Thu, 23 Mar 2023 13:35:37 -0500 Subject: implement skeleton of physics system --- honey/mat4.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'honey/mat4.lua') diff --git a/honey/mat4.lua b/honey/mat4.lua index 6ea17fd..cdc5e7d 100644 --- a/honey/mat4.lua +++ b/honey/mat4.lua @@ -114,6 +114,12 @@ function Mat4.zero(self) end +function Mat4.mul(self, other) + glm.mat4_mul(self.data, other.data, self.data) + return self +end + + function Mat4.translate(self, vec) glm.translate(self.data, vec.data) return self -- cgit v1.2.1