moved sim options to separate file
This commit is contained in:
parent
49feb0c106
commit
fe6a263164
28
simulator.js
28
simulator.js
@ -10,34 +10,6 @@ import { Options } from './options.js';
|
|||||||
import { simOptions } from './sim-options.js';
|
import { simOptions } from './sim-options.js';
|
||||||
import { initializeTools } from './sim-tools.js';
|
import { initializeTools } from './sim-tools.js';
|
||||||
|
|
||||||
const simOptions = {
|
|
||||||
pauseDuring: {
|
|
||||||
creation: ['Pause While Creating', 'boolean', true],
|
|
||||||
selection: ['Pause While Selecting', 'boolean', true],
|
|
||||||
},
|
|
||||||
display: {
|
|
||||||
velocity: ['Velocity Vectors', 'boolean', true],
|
|
||||||
acceleration: ['Accel. Vectors', 'boolean', true],
|
|
||||||
traces: ['Path Traces', 'boolean', true],
|
|
||||||
dashedTraces: ['Dashed Traces', 'boolean', false],
|
|
||||||
},
|
|
||||||
collision: {
|
|
||||||
merge: ['Merge Masses<br>on Collision', 'boolean', true, {wide: true}],
|
|
||||||
},
|
|
||||||
param: {
|
|
||||||
gravity: ['Gravity', 'number', 4E4],
|
|
||||||
timeScale: ['Time Scale', 'number', 0.2],
|
|
||||||
massCreationRate: ['Mass Creation Rate', 'number', 10],
|
|
||||||
},
|
|
||||||
debug: {
|
|
||||||
objectsInfo: ['Objects Info', 'boolean', false],
|
|
||||||
cursorInfo: ['Cursor Info', 'boolean', false],
|
|
||||||
frameRate: ['Frame Rate', 'boolean', false, {wide: true}],
|
|
||||||
currentMode: ['Current Mode', 'boolean', false],
|
|
||||||
panningInfo: ['Panning Info', 'boolean', false],
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
export class Sim {
|
export class Sim {
|
||||||
info = {};
|
info = {};
|
||||||
rawTime = undefined;
|
rawTime = undefined;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user