mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 09:08:47 +02:00
Reduce minimum inspect distance
This commit is contained in:
parent
69b6adc90c
commit
6df34d2a89
1 changed files with 3 additions and 2 deletions
|
@ -123,10 +123,11 @@ function orientationOf(vector) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleRadialMode(dx, dy) {
|
function handleRadialMode(dx, dy) {
|
||||||
|
var MIN_INSPECT_RADIUS = 0.1;
|
||||||
azimuth += dx / AZIMUTH_RATE;
|
azimuth += dx / AZIMUTH_RATE;
|
||||||
radius += radius * dy * RADIUS_RATE;
|
radius += radius * dy * RADIUS_RATE;
|
||||||
if (radius < 1) {
|
if (radius < MIN_INSPECT_RADIUS) {
|
||||||
radius = 1;
|
radius = MIN_INSPECT_RADIUS;
|
||||||
}
|
}
|
||||||
|
|
||||||
vector = {
|
vector = {
|
||||||
|
|
Loading…
Reference in a new issue