what’s the proper way to do it then? for a beginner of course.
-- Put all camera data into a table for rendercam module and init camera.
self.data = {
active = self.active,
id = self.id,
nearZ = self.nearZ,
farZ = self.farZ,
abs_nearZ = self.nearZ,
abs_farZ = self.farZ,
worldZ = self.wpos.z - self.viewDistance, -- worldZ only used for screen_to_world_2d
orthographic = self.orthographic,
fov = self.fov,
fixedAspectRatio = self.fixedAspectRatio,
orthoScale = self.orthoScale,
aspectRatio = self.aspectRatio,
scaleMode = self.scaleMode,
useViewArea = self.useViewArea,
viewArea = self.viewArea,
halfViewArea = vmath.vector3(self.viewArea) * 0.5,
wpos = self.wpos,
wforwardVec = self.wforwardVec, -- for calculating view matrix
wupVec = self.wupVec, -- for calculating view matrix
lpos = self.lpos,
lforwardVec = self.lforwardVec, -- for zooming
lupVec = self.lupVec, -- or panning
lrightVec = self.lrightVec, -- for panning
shakes = {},
recoils = {},
follows = {"mc"},
following = true
}
this table is in the init section and changing those two last parameters does the job I want, the github documentation points to those two as well, can I access those parameters from another script file? if I can, what the code looks like?