mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 14:03:17 +02:00
cleanup
This commit is contained in:
parent
63aa0f8c3f
commit
fb8263a882
1 changed files with 7 additions and 16 deletions
|
@ -384,22 +384,13 @@ function Teleporter() {
|
|||
z: intersection.intersection.z
|
||||
}
|
||||
|
||||
var tooClose = isTooCloseToTeleport(position);
|
||||
this.tooClose = tooClose;
|
||||
if (tooClose === false) {
|
||||
Overlays.editOverlay(this.targetOverlay, {
|
||||
url: TARGET_MODEL_URL,
|
||||
position: position,
|
||||
rotation: Quat.fromPitchYawRollDegrees(0, euler.y, 0),
|
||||
});
|
||||
}
|
||||
if (tooClose === true) {
|
||||
Overlays.editOverlay(this.targetOverlay, {
|
||||
url: TOO_CLOSE_MODEL_URL,
|
||||
position: position,
|
||||
rotation: Quat.fromPitchYawRollDegrees(0, euler.y, 0),
|
||||
});
|
||||
}
|
||||
this.tooClose = isTooCloseToTeleport(position);
|
||||
|
||||
Overlays.editOverlay(this.targetOverlay, {
|
||||
url: this.tooClose ? TOO_CLOSE_MODEL_URL : TARGET_MODEL_URL,
|
||||
position: position,
|
||||
rotation: Quat.fromPitchYawRollDegrees(0, euler.y, 0),
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue