dont spin by default

This commit is contained in:
James B. Pollack 2015-12-05 17:51:55 -08:00
parent 7859241ad3
commit 378b71d701

View file

@ -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);
}