gamnit: fix camera anchors left and right
authorAlexis Laferrière <alexis.laf@xymus.net>
Sun, 15 Oct 2017 02:17:40 +0000 (22:17 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 21 Nov 2017 19:40:26 +0000 (14:40 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/gamnit/cameras.nit

index c83ace3..33aac41 100644 (file)
@@ -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)