From c5fd6a98d29c8790c266da2c6b6db2ab173c3064 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Fri, 4 Dec 2020 22:23:02 -0600 Subject: add SignalManager.lua and revert to old Node.lua --- demo/Camera.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'demo/Camera.lua') diff --git a/demo/Camera.lua b/demo/Camera.lua index fda23f2..4f5c1fe 100644 --- a/demo/Camera.lua +++ b/demo/Camera.lua @@ -1,7 +1,9 @@ +local Node = require('Node') + local Camera = {} Camera.prototype = {} -setmetatable(Camera.prototype, { __index = honey.nodeMetatable.__index }) +setmetatable(Camera.prototype, { __index = Node.prototype }) Camera.prototype.updateView = function(self) self.basis = self.transform:basis() @@ -16,7 +18,7 @@ Camera.mt.__index = Camera.prototype -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Camera.new = function(parent, position, rotation, scale, fov, aspect, near, far) - local camera = honey.node(parent, position, rotation, scale) + local camera = Node.new(parent, position, rotation, scale) setmetatable(camera, Camera.mt) camera.view = honey.glm.mat4() -- cgit v1.2.1