mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 13:34:01 +02:00
Merge pull request #432 from ctrlaltdavid/feature/reduce-inspect-distance
Reduce minimum inspect distance
This commit is contained in:
commit
a5bbd08f8e
1 changed files with 3 additions and 2 deletions
|
@ -123,10 +123,11 @@ function orientationOf(vector) {
|
|||
}
|
||||
|
||||
function handleRadialMode(dx, dy) {
|
||||
var MIN_INSPECT_RADIUS = 0.1;
|
||||
azimuth += dx / AZIMUTH_RATE;
|
||||
radius += radius * dy * RADIUS_RATE;
|
||||
if (radius < 1) {
|
||||
radius = 1;
|
||||
if (radius < MIN_INSPECT_RADIUS) {
|
||||
radius = MIN_INSPECT_RADIUS;
|
||||
}
|
||||
|
||||
vector = {
|
||||
|
|
Loading…
Reference in a new issue