Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AleziaKurdis authored Nov 5, 2023
1 parent eeff71f commit 42d2ce9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CEON/singularityCeon.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
var ROOT = Script.resolvePath('').split("singularityCeon.js")[0];
var thisEntity;

var UPDATE_TIMER_INTERVAL = 1000; // 5 sec
var UPDATE_TIMER_INTERVAL = 500; // 1/2 sec
var processTimer = 0;

var starId = Uuid.NULL;
Expand Down Expand Up @@ -115,7 +115,7 @@
antiHue = antiHue - 1;
}
var sunColor = hslToRgb(antiHue, 1, 0.6);
var velocity = Vec3.subtract(nextSunPosition, currentSunPosition);
var velocity = Vec3.multiply(Vec3.subtract(nextSunPosition, currentSunPosition), 1/UPDATE_TIMER_INTERVAL);
Entities.editEntity(starId, {"localPosition": currentSunPosition, "localVelocity": velocity});
Entities.editEntity(solarZoneId, {
"keyLight": {
Expand Down

0 comments on commit 42d2ce9

Please sign in to comment.