mirror of
https://github.com/Sheldan/canvas.git
synced 2026-04-29 15:55:16 +00:00
changing code style
This commit is contained in:
@@ -11,7 +11,7 @@ const loader = new FontLoader();
|
|||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
gravitationalConstant: 6.67430e-11,
|
gravitationalConstant: 6.67430e-11,
|
||||||
timestep: 1 * 3600,
|
timeStep: 1 * 3600,
|
||||||
AU: 149_597_870_700,
|
AU: 149_597_870_700,
|
||||||
lines: true
|
lines: true
|
||||||
}
|
}
|
||||||
@@ -54,7 +54,7 @@ function render() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function act() {
|
function act() {
|
||||||
spheresAct(spheres.spheres, config.timestep)
|
spheresAct(spheres.spheres, config.timeStep)
|
||||||
if(config.lines) {
|
if(config.lines) {
|
||||||
spheres.spheres.forEach(sphere => {
|
spheres.spheres.forEach(sphere => {
|
||||||
if(!(sphere.name in lines)) {
|
if(!(sphere.name in lines)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user