mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 06:36:21 +02:00
Use MyAvatar.goToLocation in radar teleport.
Use MyAvatar.goToLocation in radar teleport to prevent synchronization issues that make it fail occasionally when directly modifying its world position. It will work just as teleport.js does.
This commit is contained in:
parent
35e888977b
commit
d5c252c9ad
1 changed files with 3 additions and 3 deletions
|
@ -46,11 +46,11 @@ var uniqueColor;
|
|||
|
||||
function moveTo(position) {
|
||||
if (radar) {
|
||||
MyAvatar.position = position;
|
||||
MyAvatar.goToLocation(position, false);
|
||||
Camera.position = {
|
||||
x : MyAvatar.position.x,
|
||||
x : position.x,
|
||||
y : radarHeight,
|
||||
z : MyAvatar.position.z
|
||||
z : position.z
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue