Esempio n. 1
0
 public void drawWallFacesCamera(int x, int y, int z, Camera cam) {
   RigidBody body = new RigidBody(new Point[] {new Point2D(-0.5f, 0), new Point2D(0.5f, 0)});
   RigidUtils.RotateZOnlyPoints(body, -cam.getRotation().getX());
   this.drawWall(
       body.points[0].getX() + x,
       body.points[1].getX() + x,
       body.points[0].getY() + z,
       body.points[1].getY() + z,
       0.0 + y,
       cam);
 }
Esempio n. 2
0
 public void drawWallFacesCamera(int x, int y, int z, Camera cam, Render texture) {
   RigidBody body = new RigidBody(new Point[] {new Point2D(-0.5f, 0), new Point2D(0.5f, 0)});
   RigidUtils.RotateZOnlyPoints(body, -cam.getRotation().getX());
   body.Translate(0.5f, 1.5f, 0.0f);
   this.drawWall(
       body.points[0].getX() + body.x + x,
       body.points[1].getX() + body.x + x,
       body.points[0].getY() + body.y + z,
       body.points[1].getY() + body.y + z,
       0.0 + y,
       cam,
       texture);
 }