Merge pull request #432 from ctrlaltdavid/feature/reduce-inspect-distance

Reduce minimum inspect distance
This commit is contained in:
kasenvr 2020-06-11 17:17:04 -04:00 committed by GitHub
commit a5bbd08f8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = {