summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/rectangles/engine/rooms/mover.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-11-03 15:59:08 -0500
committerJules Laplace <jules@okfoc.us>2014-11-03 15:59:08 -0500
commit64748a6d55f1e4d08270367767b631b724833b19 (patch)
treedc54c30208fca09451c3cf5165bf715e3545beeb /public/assets/javascripts/rectangles/engine/rooms/mover.js
parent21ca0470b4b7731e0ab527a52d53aa308cad41d1 (diff)
parent16e4733522018477062abd8d60837c2bd69a93cb (diff)
merge
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/rooms/mover.js')
-rw-r--r--public/assets/javascripts/rectangles/engine/rooms/mover.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/public/assets/javascripts/rectangles/engine/rooms/mover.js b/public/assets/javascripts/rectangles/engine/rooms/mover.js
index 5682be8..ac27aba 100644
--- a/public/assets/javascripts/rectangles/engine/rooms/mover.js
+++ b/public/assets/javascripts/rectangles/engine/rooms/mover.js
@@ -117,7 +117,6 @@ Rooms.mover = new function(){
wall.get_points(wall_vec)
-
t = perp(origins, wall_vec) / ( perp(cursor_copy, wall_vec) || 0.0000001 )
if ( min_t < t || t < 0 || 1 < t ) return
@@ -240,13 +239,13 @@ Rooms.mover = new function(){
wall_vec.normalize = function(){
var carry
if (this.x.a > this.y.a) {
- console.log("SWAP X")
+// console.log("SWAP X")
carry = this.x.a
this.x.a = this.y.a
this.y.a = carry
}
if (this.x.b > this.y.b) {
- console.log("SWAP Y")
+// console.log("SWAP Y")
carry = this.x.b
this.x.b = this.y.b
this.y.b = carry