diff options
| author | Julie Lala <jules@okfoc.us> | 2014-06-20 01:00:35 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2014-06-20 01:00:35 -0400 |
| commit | befeb2ed9b7f7086ec0861cbfe4ab6450e1987af (patch) | |
| tree | 9a1c3259d07261e2209cfdc4aa7511bc80b0cf84 /public/assets/javascripts/rectangles/engine/scenery/resize.js | |
| parent | 4ee6b7e7faab5ed1e5bc295ee5c4ca0540c10da8 (diff) | |
disarm delete after upload
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/scenery/resize.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/engine/scenery/resize.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/public/assets/javascripts/rectangles/engine/scenery/resize.js b/public/assets/javascripts/rectangles/engine/scenery/resize.js index 2a400f5..33efd05 100644 --- a/public/assets/javascripts/rectangles/engine/scenery/resize.js +++ b/public/assets/javascripts/rectangles/engine/scenery/resize.js @@ -164,13 +164,15 @@ Scenery.resize = new function(){ var translation = new vec2( x_sign * cursor.x.magnitude() * cursor_amp, y_sign * cursor.y.magnitude() * cursor_amp ) + // resize using scale here instead of width and height + if (selected_dot.side & LEFT_RIGHT) { - obj.mx.width = dimensions.a + translation.a +// obj.mx.width = dimensions.a + translation.a obj.mx.x = position.a + x_sign * cos(rotationY) * translation.a/2 * obj.mx.scale obj.mx.z = position.c + x_sign * sin(rotationY) * translation.a/2 * obj.mx.scale } if (selected_dot.side & TOP_BOTTOM) { - obj.mx.height = dimensions.b + translation.b +// obj.mx.height = dimensions.b + translation.b obj.mx.y = position.b - y_sign * translation.b/2 * obj.mx.scale } |
