.. | .. |
---|
16091 | 16091 | gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2); |
---|
16092 | 16092 | break; |
---|
16093 | 16093 | case Object3D.hitScale: gr.setColor(Color.cyan); |
---|
16094 | | - gr.drawLine(X, Y, 0, 0); |
---|
| 16094 | + gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2); |
---|
16095 | 16095 | break; |
---|
16096 | 16096 | } |
---|
16097 | 16097 | |
---|
.. | .. |
---|
7493 | 7493 | hitSomething = hitScale; |
---|
7494 | 7494 | |
---|
7495 | 7495 | double scale = 0.005f * clickInfo.camera.Distance(); |
---|
7496 | | - double hScale = (double) (clickInfo.x /*- centerPt.x*/) / 32; |
---|
| 7496 | + double hScale = (double) (clickInfo.x - centerPt.x) / 32; |
---|
7497 | 7497 | double sign = 1; |
---|
7498 | 7498 | if (hScale < 0) |
---|
7499 | 7499 | { |
---|
.. | .. |
---|
7505 | 7505 | //hScale = 0.01; |
---|
7506 | 7506 | } |
---|
7507 | 7507 | |
---|
7508 | | - double vScale = (double) (clickInfo.y /*- centerPt.y*/) / 32; |
---|
| 7508 | + double vScale = (double) (clickInfo.y - centerPt.y) / 32; |
---|
7509 | 7509 | sign = 1; |
---|
7510 | 7510 | if (vScale < 0) |
---|
7511 | 7511 | { |
---|
.. | .. |
---|
7720 | 7720 | break; |
---|
7721 | 7721 | |
---|
7722 | 7722 | case hitScale: // scale |
---|
7723 | | - double hScale = (double) (clickInfo.x /*- centerPt.x*/) / 32; |
---|
| 7723 | + double hScale = (double) (clickInfo.x - centerPt.x) / 32; |
---|
7724 | 7724 | double sign = 1; |
---|
7725 | 7725 | if (hScale < 0) |
---|
7726 | 7726 | { |
---|
.. | .. |
---|
7732 | 7732 | //hScale = 0.01; |
---|
7733 | 7733 | } |
---|
7734 | 7734 | |
---|
7735 | | - double vScale = (double) (clickInfo.y /*- centerPt.y*/) / 32; |
---|
| 7735 | + double vScale = (double) (clickInfo.y - centerPt.y) / 32; |
---|
7736 | 7736 | sign = 1; |
---|
7737 | 7737 | if (vScale < 0) |
---|
7738 | 7738 | { |
---|