diff options
| author | LalleSX | 2026-10-24 14:58:21 +0200 |
|---|---|---|
| committer | LalleSX | 2026-10-24 14:58:21 +0200 |
| commit | 73b09270c54acab810c10a80bed1d77c1a7bb2ab (patch) | |
| tree | e5bae1180c9a76345cc7779a24988875542d2dd9 /src/scene/test4.ts | |
| parent | Add tests for math rendering and interactive scenes; update navigation and viewport handling (diff) | |
| download | 3D-Electrophysics-73b09270c54acab810c10a80bed1d77c1a7bb2ab.tar.gz 3D-Electrophysics-73b09270c54acab810c10a80bed1d77c1a7bb2ab.zip | |
Diffstat (limited to '')
| -rw-r--r-- | src/scene/test4.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scene/test4.ts b/src/scene/test4.ts index 97e53ee..a3f6ccd 100644 --- a/src/scene/test4.ts +++ b/src/scene/test4.ts @@ -1,5 +1,6 @@ import * as THREE from 'three'; import { number, format as formatNumber, type Parameters, type TestId } from '../experiments'; +import { scene } from '../i18n'; import { type Charge, type Point } from '../physics/electricField'; import { pairEnergy } from '../physics/models'; import { assemblyState, centralState, conservationState, motionState, movingCharge, progress, rotationState } from '../test4'; @@ -82,7 +83,7 @@ function conservation(group: THREE.Group, p: Parameters): Animate { label(group, String.raw`$${name} = ${format(joules * 1e9)}\,\mathrm{nJ}$`, { x, y: baseline - 0.45, z: 1 }, colour, 1.3); } line(group, [{ x: -2.8, y: -0.1, z: 1 }, { x: 2.8, y: -0.1, z: 1 }], colours.field, 0.4); - label(group, 'Energy changes form · total stays constant', { x: 0, y: -4.2, z: 1 }, colours.field, 3.5); + label(group, scene('energyConstant'), { x: 0, y: -4.2, z: 1 }, colours.field, 3.5); return pulse(probe); } |