From 69d5a3c712028b0448489c89243618b864dd02ea Mon Sep 17 00:00:00 2001 From: realtradam Date: Mon, 19 Apr 2021 21:58:14 -0400 Subject: . --- camera.rb | 144 ++++++++++++++------------------------------------------------ 1 file changed, 33 insertions(+), 111 deletions(-) (limited to 'camera.rb') diff --git a/camera.rb b/camera.rb index 8623e34..8748ce5 100644 --- a/camera.rb +++ b/camera.rb @@ -1,136 +1,58 @@ # frozen_string_literal: true -require 'ruby2d' -require_relative 'quad_camera_tracker' +require_relative 'adapt_triangle' -# Simulates a moving camera by manipulating objects it knows -class Camera - # Is added to quads to manage how they show and modify - # it should convert or undo the camera modification - # such that it is as if the camera wasnt there and everything - # is relative to the origin - class <