summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
Diffstat (limited to 'demo')
-rw-r--r--demo/main.lua14
1 files changed, 12 insertions, 2 deletions
diff --git a/demo/main.lua b/demo/main.lua
index 3fabe00..ec0bac1 100644
--- a/demo/main.lua
+++ b/demo/main.lua
@@ -1,9 +1,19 @@
+local root = honey.node(nil,
+ honey.glm.vec3{0,0,0},
+ honey.glm.vec3{0,0,0},
+ honey.glm.vec3{1,1,1})
+
+local child = honey.node(root,
+ honey.glm.vec3{0,0,0},
+ honey.glm.vec3{0,0,0},
+ honey.glm.vec3{1,1,1})
+
local v = honey.glm.vec3{1, 2, 3}
-local M = honey.glm.mat3()
+local M = honey.glm.mat4()
M:set(1,3, 1)
-print(M:mulv(v))
+print(M:mul(M))
print(v)
print(honey.glm.vec3{2, 0.001, 0})