diff options
author | hwc487 | 2012-02-01 14:39:46 -0800 |
---|---|---|
committer | hwc487 | 2012-02-01 14:39:46 -0800 |
commit | 823945a2bcb42bbf9c6a1cd0ef723b8f415e557f (patch) | |
tree | e4f682e215ab4fee8df06ba9f17920664889c226 /js/helper-classes/3D | |
parent | 5a288b9d3f8e6690149978d9d0e7bea98cc81312 (diff) | |
download | ninja-823945a2bcb42bbf9c6a1cd0ef723b8f415e557f.tar.gz |
factor in the zoom factor when drawing the stage compass.
Diffstat (limited to 'js/helper-classes/3D')
-rw-r--r-- | js/helper-classes/3D/draw-utils.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/helper-classes/3D/draw-utils.js b/js/helper-classes/3D/draw-utils.js index c26a5cd1..fd96af4d 100644 --- a/js/helper-classes/3D/draw-utils.js +++ b/js/helper-classes/3D/draw-utils.js | |||
@@ -1089,7 +1089,8 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, { | |||
1089 | var resMat = glmat4.multiply( tMat, mat, [] ); | 1089 | var resMat = glmat4.multiply( tMat, mat, [] ); |
1090 | var origin = [0,0,0,1]; | 1090 | var origin = [0,0,0,1]; |
1091 | 1091 | ||
1092 | var arrowSize = 50; | 1092 | var zoomFactor = this.application.ninja.documentBar.zoomFactor/100.0; |
1093 | var arrowSize = 50 / zoomFactor; | ||
1093 | var xAxis = [arrowSize,0,0,1]; | 1094 | var xAxis = [arrowSize,0,0,1]; |
1094 | //var rO = resMat.multiply(origin); | 1095 | //var rO = resMat.multiply(origin); |
1095 | var rO = glmat4.multiplyVec3( resMat, origin, []); | 1096 | var rO = glmat4.multiplyVec3( resMat, origin, []); |