Skip to content

Commit 7ecc605

Browse files
preserve normalized Galaxy physics controls
1 parent f18d5f4 commit 7ecc605

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

engraphis/dashboard_assets/engraphis-graph.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8605,18 +8605,17 @@
86058605
gravity: state.settings.gravity,
86068606
localGravitySetting: GALAXY_STELLAR_GRAVITY_FLOOR_SETTING,
86078607
/* The dashboard normalises the three spacetime sliders to a 0..2 range
8608-
(default 1.0). The galaxy physics below was calibrated for a 0..8 range
8609-
(gravitationalConstant/localGravitationalConstant) and a 0..16 range
8610-
(blackHoleMass). Multiply by 4 and 8 respectively to restore the
8611-
calibrated scale without disturbing the non-galaxy engine, which still
8612-
receives the 0..2 value directly and clamps it at [0, 2] in applyForces. */
8608+
(default 1.0). Preserve that normalized value at the Galaxy boundary:
8609+
the downstream multiplier helpers clamp their own direct-call range,
8610+
and multiplying here made the default field 4x/8x stronger than the
8611+
value shown by the controls. */
86138612
gravitationalConstant: galaxyPhysicsMultiplier(
8614-
state.settings.gravitationalConstant, GALAXY_GRAVITATIONAL_CONSTANT_MULTIPLIER, 8) * 4,
8613+
state.settings.gravitationalConstant, GALAXY_GRAVITATIONAL_CONSTANT_MULTIPLIER, 8),
86158614
localGravitationalConstant: galaxyPhysicsMultiplier(
86168615
state.settings.localGravitationalConstant,
8617-
GALAXY_LOCAL_GRAVITATIONAL_CONSTANT_MULTIPLIER, 8) * 4,
8616+
GALAXY_LOCAL_GRAVITATIONAL_CONSTANT_MULTIPLIER, 8),
86188617
blackHoleMass: galaxyPhysicsMultiplier(
8619-
state.settings.blackHoleMass, GALAXY_BLACK_HOLE_MASS_MULTIPLIER, 16) * 8,
8618+
state.settings.blackHoleMass, GALAXY_BLACK_HOLE_MASS_MULTIPLIER, 16),
86208619
softening: galaxyLiveSoftening(),
86218620
centralSoftening: Math.max(36, galaxySoftening() * 5),
86228621
bridgeSoftening: Math.max(24, galaxySoftening() * 4),

0 commit comments

Comments
 (0)