mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 16:50:43 +02:00
cleanup
This commit is contained in:
parent
ffbfc89e99
commit
9afc4d0c26
1 changed files with 6 additions and 9 deletions
|
@ -274,10 +274,10 @@ function Teleporter() {
|
|||
};
|
||||
|
||||
this.updateTargetOverlay = function(intersection) {
|
||||
this.intersection=intersection;
|
||||
this.intersection = intersection;
|
||||
var position = {
|
||||
x: intersection.intersection.x,
|
||||
y: intersection.intersection.y+TARGET_MODEL_DIMENSIONS.y,
|
||||
y: intersection.intersection.y + TARGET_MODEL_DIMENSIONS.y,
|
||||
z: intersection.intersection.z
|
||||
}
|
||||
Overlays.editOverlay(this.targetOverlay, {
|
||||
|
@ -300,10 +300,7 @@ function Teleporter() {
|
|||
|
||||
var offset = getAvatarFootOffset();
|
||||
|
||||
// _this.intersectionPosition.y+=offset;
|
||||
// print('OFFSET IS::: ' + JSON.stringify(offset))
|
||||
// print('TELEPORT POSITION IS:: ' + JSON.stringify(_this.intersectionPosition));
|
||||
_this.intersection.intersection.y+=offset;
|
||||
_this.intersection.intersection.y += offset;
|
||||
MyAvatar.position = _this.intersection.intersection;
|
||||
this.exitTeleportMode();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue