mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
dont spin by default
This commit is contained in:
parent
7859241ad3
commit
378b71d701
1 changed files with 5 additions and 2 deletions
|
@ -28,6 +28,7 @@ var EARTH_CENTER_POSITION = Vec3.sum(Vec3.sum(MyAvatar.position, {
|
|||
|
||||
var EARTH_MODEL_URL = 'http://hifi-content.s3.amazonaws.com/james/earthquakes_live/models/earth-noclouds.fbx';
|
||||
|
||||
var SHOULD_SPIN=false;
|
||||
var POLL_FOR_CHANGES = true;
|
||||
//USGS updates the data every five minutes
|
||||
var CHECK_QUAKE_FREQUENCY = 5 * 60 * 1000;
|
||||
|
@ -214,10 +215,12 @@ function spinEarth(){
|
|||
Entities.editEntity(earth,{
|
||||
angularVelocity:{
|
||||
x:0,
|
||||
y:0.5,
|
||||
y:0.25,
|
||||
z:0
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Script.update.connect(spinEarth)
|
||||
if(SHOULD_SPIN===true){
|
||||
Script.update.connect(spinEarth);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue