aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/src/core/script/camera.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/camera.js')
-rwxr-xr-xjs/helper-classes/RDGE/src/core/script/camera.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/helper-classes/RDGE/src/core/script/camera.js b/js/helper-classes/RDGE/src/core/script/camera.js
index da9aff3d..e85fe593 100755
--- a/js/helper-classes/RDGE/src/core/script/camera.js
+++ b/js/helper-classes/RDGE/src/core/script/camera.js
@@ -208,9 +208,9 @@ RDGE.camera = function () {
208 this.getFTR = function () { 208 this.getFTR = function () {
209 var fovyRad = (this.persp.fov * 0.5) * Math.PI / 180.0; 209 var fovyRad = (this.persp.fov * 0.5) * Math.PI / 180.0;
210 return [ 210 return [
211 Math.tan(fovyRad) * this.persp.far, 211 Math.tan(fovyRad) * this.persp.far,
212 Math.tan(fovyRad / this.persp.aratio) * this.persp.far, 212 Math.tan(fovyRad / this.persp.aratio) * this.persp.far,
213 this.persp.far]; 213 this.persp.far];
214 }; 214 };
215 215
216 this.attachCameraToNode = function (node) { 216 this.attachCameraToNode = function (node) {
@@ -219,7 +219,7 @@ RDGE.camera = function () {
219}; 219};
220 220
221 221
222/** Camera Manager 222/** Camera Manager
223 * This class is used to manage the active camera. It provides functionality 223 * This class is used to manage the active camera. It provides functionality
224 * for getting and setting the active camera, as well as providing stack operations 224 * for getting and setting the active camera, as well as providing stack operations
225 * to switch to and from multiple cameras. 225 * to switch to and from multiple cameras.