From working some more on the Minimal example, I found it a little odd that upon startup my camera was looking down at the floor and I had to move it up to see the red cube. I thought I had the parameters correct to see the cube right when the window opens.
From working some more on the
Minimal
example, I found it a little odd that upon startup my camera was looking down at the floor and I had to move it up to see the red cube. I thought I had the parameters correct to see the cube right when the window opens.I have the camera initialized with these values:
But during the first loop of the game, my console put out these values. that
target.y
is really offWhen I moved the mouse to focus on the red cube, I checked the values again:
My suspicion is that maybe the programmatic movement of the mouse (because of First Person Mode) at startup causes that.
Source: https://github.com/define-private-public/zengine/blob/minimal/examples/src/zengine_examples/03_Minimal/main.nim