From: Alexis Laferrière Date: Sun, 15 Oct 2017 02:17:40 +0000 (-0400) Subject: gamnit: fix camera anchors left and right X-Git-Url: http://nitlanguage.org?ds=sidebyside gamnit: fix camera anchors left and right Signed-off-by: Alexis Laferrière --- diff --git a/lib/gamnit/cameras.nit b/lib/gamnit/cameras.nit index c83ace3..33aac41 100644 --- a/lib/gamnit/cameras.nit +++ b/lib/gamnit/cameras.nit @@ -245,10 +245,10 @@ class UICamera var bottom: IPoint3d[Float] = new CameraAnchor(self, 0.5, -1.0) # Center of the left border of the screen, at z = 0 - var left: IPoint3d[Float] = new CameraAnchor(self, 0.0, -1.0) + var left: IPoint3d[Float] = new CameraAnchor(self, 0.0, -0.5) # Center of the right border of the screen, at z = 0 - var right: IPoint3d[Float] = new CameraAnchor(self, 1.0, -1.0) + var right: IPoint3d[Float] = new CameraAnchor(self, 1.0, -0.5) # Top left corner of the screen, at z = 0 var top_left: IPoint3d[Float] = new CameraAnchor(self, 0.0, 0.0)