diff options
author | Kris Kowal | 2012-07-06 11:52:06 -0700 |
---|---|---|
committer | Kris Kowal | 2012-07-06 15:01:48 -0700 |
commit | 648ee61ae84216d0236e0dbc211addc13b2cfa3a (patch) | |
tree | 8f0f55557bd0c47a84e49c1977c950645d284607 /js/helper-classes/RDGE/src/core/script/camera.js | |
parent | aedd14b18695d031f695d27dfbd94df5614495bb (diff) | |
download | ninja-648ee61ae84216d0236e0dbc211addc13b2cfa3a.tar.gz |
Expand tabs
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/camera.js')
-rwxr-xr-x | js/helper-classes/RDGE/src/core/script/camera.js | 8 |
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. |