diff options
author | sanine-a <sanine.not@pm.me> | 2023-03-23 13:35:37 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2023-03-23 13:35:37 -0500 |
commit | e5553bb81c93cd76456d07d3a1d7e8bb1b249b6e (patch) | |
tree | a92801deaba55c85dd4f52636ab4f616e8483796 /honey/mat4.lua | |
parent | f4346b8f06653dbc1e0c346d88f5f83ca8a7b876 (diff) |
implement skeleton of physics system
Diffstat (limited to 'honey/mat4.lua')
-rw-r--r-- | honey/mat4.lua | 6 |
1 files changed, 6 insertions, 0 deletions
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 |