mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
azimuth function is really just a ratio
This commit is contained in:
parent
08eacc436f
commit
d1bc31afb6
1 changed files with 1 additions and 1 deletions
|
@ -2332,7 +2332,7 @@ SelectionDisplay = (function() {
|
||||||
var vector = Vec3.subtract(pick, initialXZPick);
|
var vector = Vec3.subtract(pick, initialXZPick);
|
||||||
|
|
||||||
// If the mouse is too close to the horizon of the pick plane, stop moving
|
// If the mouse is too close to the horizon of the pick plane, stop moving
|
||||||
var MIN_AZIMUTH = 0.02; // Radians
|
var MIN_AZIMUTH = 0.02; // largest dimension of object divided by distance to it
|
||||||
var azimuth = translateXZTool.azimuth(pickRay.origin, pick);
|
var azimuth = translateXZTool.azimuth(pickRay.origin, pick);
|
||||||
if (wantDebug) {
|
if (wantDebug) {
|
||||||
print("Start Azimuth: " + translateXZTool.startingAzimuth + ", Azimuth: " + azimuth);
|
print("Start Azimuth: " + translateXZTool.startingAzimuth + ", Azimuth: " + azimuth);
|
||||||
|
|
Loading…
Reference in a new issue