diff options
author | sanine-a <sanine.not@pm.me> | 2020-12-04 22:23:02 -0600 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-12-04 22:23:02 -0600 |
commit | c5fd6a98d29c8790c266da2c6b6db2ab173c3064 (patch) | |
tree | d1a6898ced92084420fbfb012873b4ead14be08e /demo/Camera.lua | |
parent | e767e1ff9d81f8a76196caab91d9b6b4bbe0b30e (diff) |
add SignalManager.lua and revert to old Node.lua
Diffstat (limited to 'demo/Camera.lua')
-rw-r--r-- | demo/Camera.lua | 6 |
1 files changed, 4 insertions, 2 deletions
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() |