mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-10 01:36:26 +02:00
cleaner code
This commit is contained in:
parent
c0cfee371e
commit
f93ed56124
1 changed files with 5 additions and 10 deletions
|
@ -549,12 +549,7 @@ function isMoving() {
|
|||
}
|
||||
|
||||
function isTooCloseToTeleport(position) {
|
||||
var distance = Vec3.distance(MyAvatar.position, position);
|
||||
if (distance <= TELEPORT_CANCEL_RANGE) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
return Vec3.distance(MyAvatar.position, position) <= TELEPORT_CANCEL_RANGE;
|
||||
}
|
||||
|
||||
function registerMappings() {
|
||||
|
|
Loading…
Reference in a new issue