diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-08-18 19:35:02 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-08-18 19:35:02 -0400 |
| commit | 72afc148b11ac57c991d699c205675b4b0f1cf70 (patch) | |
| tree | f749d93ea76ffea7310cc416d80f39bfae0827b8 /public/assets/test/ortho2.html | |
| parent | b4c7b2126b384a61bb69b046d0620ac53dd063ec (diff) | |
set wall height
Diffstat (limited to 'public/assets/test/ortho2.html')
| -rw-r--r-- | public/assets/test/ortho2.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public/assets/test/ortho2.html b/public/assets/test/ortho2.html index 013c75b..448f029 100644 --- a/public/assets/test/ortho2.html +++ b/public/assets/test/ortho2.html @@ -167,7 +167,7 @@ $(window).resize(function(){ map.canvas.width = map.dimensions.a = window.innerWidth/2 }) -var wall_height = 180 +var wallHeight = 180 var placing = false var points, mx_points = [] var shapes = [] @@ -219,10 +219,10 @@ function add_mx_polyline_face(head, tail){ var angle = atan2( head.b - tail.b, head.a - tail.a ) mx.move({ x: mid_x / 2, - y: wall_height/2 + 1, + y: wallHeight/2 + 1, z: mid_z / 2, width: ceil(len), - height: wall_height, + height: wallHeight, rotationY: angle }) var hue = abs(round( angle / PI * 90 + 300)) |
