local require = require
local _G = _G
module(...)
require "Core.Camera.Camera"
local M = _G.Class( _G.Core.Camera.Camera ) --Gross, lame
FreeCamera = M
function M:__constructor(x,y,z)
self.Active = false
self.x = x
self.y = y
self.z = z
self.ID = _G.EngineManager:getCamera()
--_G.print("got Id of:" .. self.ID)
self:setCameraPosition(x, y, z, self.ID)
_G.print("<<<Camera in lua>>>")
end
function M:Move(x,y,z)
_G.EngineManager:MoveCam()
end
function M:setCameraPosition(x,y,z,ID)
_G.EngineManager:SetCameraPosition(x,y,z,ID)
end
function M:lookAt(ID)
_G.EngineManager:lookAt(ID)
end
function M:setActive(ID)
self.Active = true
NonActiveID = _G.EngineManager:SetActiveCamera(ID)
_G.EM:FireEvent("CameraNotActive" , NonActiveID)
--EngineManager:SetActiveCamera(ID)
end