Commit graph

10 commits

Author SHA1 Message Date
root
c20044c459 skeleton 2025-04-25 08:58:35 +00:00
root
6cbdb04786 move charge repelling stuff to its own file 2025-04-25 08:57:27 +00:00
root
fb6b8aa33c adjust constant 2025-04-24 12:39:51 +00:00
root
2acbfffc5f bugfix: velocity unbounded accel not projected
strange behaviour with velocity.mag()
sometimes it is unbounded, sometimes it remains bounded
the issue is `project_onto_plane` mutates its first argument

(1) mutating fn    yyyynnnn
(2) call fn        yynnyynn
(3) use fn retval  ynynynyn

(1) & (2)          yynnnnnn
[(1) & (2)] | (3)  yyynynyn

bounded?           yy-nyn-n

the case that we want is
(1) yes
(2) yes
(3) no

or this one
(1) no
(2) yes
(3) yes
2025-04-24 12:31:26 +00:00
root
f70370d05e Revert "remove negligible vector projection"
This reverts commit 6123c02581.
2025-04-24 12:00:29 +00:00
root
6123c02581 remove negligible vector projection
only an approximation of correctness anyway
2025-04-24 11:16:42 +00:00
root
092c6ef33c physics simulation 2025-04-24 11:12:53 +00:00
root
9d0618aa77 place charges randomly 2025-04-24 08:05:57 +00:00
root
5ac636a99c image of earth 2025-04-24 07:31:23 +00:00
root
9c527bec23 sphere 2025-04-24 07:13:31 +00:00