mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +02:00
commit
feda022975
1 changed files with 8 additions and 3 deletions
|
@ -85,18 +85,23 @@
|
||||||
var myDate = new Date();
|
var myDate = new Date();
|
||||||
var seconds = myDate.getSeconds();
|
var seconds = myDate.getSeconds();
|
||||||
secondRollDegrees = -seconds * DEGREES_FOR_SECOND;
|
secondRollDegrees = -seconds * DEGREES_FOR_SECOND;
|
||||||
Entities.editEntity(_this.secondHand, {rotation: Quat.fromPitchYawRollDegrees(0, 0, secondRollDegrees)});
|
Entities.editEntity(_this.secondHand, {
|
||||||
|
rotation: Quat.fromPitchYawRollDegrees(0, 0, secondRollDegrees)
|
||||||
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
unload: function() {
|
unload: function() {
|
||||||
Script.update.disconnect(_this.update);
|
if (connected === true) {
|
||||||
|
connected = false;
|
||||||
|
Script.update.disconnect(_this.update);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
update: function() {
|
update: function() {
|
||||||
|
|
||||||
if(iOwn === false) {
|
if (iOwn === false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue