Commit graph

25 commits

Author SHA1 Message Date
root
2a29ee0c51 style <noscript> properly 2025-04-26 13:46:29 +00:00
root
ff491467e3 rename to sphere-electrons 2025-04-26 13:16:45 +00:00
root
f496127bf9 mini changes 2025-04-26 13:16:37 +00:00
root
33aab6af5c interface: noscript notice 2025-04-26 12:59:48 +00:00
root
d10f77d420 interface 2025-04-26 12:37:53 +00:00
root
d57d49a194 pedantic: s/polyhedron/polytope: n=3 case isn't 3D 2025-04-26 12:36:49 +00:00
root
769043c5cb nicer sphere_radius on mobile 2025-04-26 12:34:01 +00:00
root
2655d15bc9 mini changes 2025-04-26 12:31:25 +00:00
root
eeb1beaea3 fix: firefox scrollbar 2025-04-26 04:20:00 +00:00
root
e51d5df1dc cleanup 2025-04-26 04:15:57 +00:00
root
d0be92d50e charges should not have earth texture, lol 2025-04-26 04:12:57 +00:00
root
34e1de68f1 hide sphere; euler's forumla trick; cache faces 2025-04-26 04:08:27 +00:00
root
cec27160f4 convex polyhedron 2025-04-25 17:15:44 +00:00
root
838eae2cbf polyhedron alg progress: face separates vertices
the algorithm so far:
- select 3 vertices
- draw a triangle between them
- for all vertex pairs (non-triangle vertices):
-- draw a line between them
-- if line intersects with triangle plane, red
-- otherwise, green

if the line is red the two vertices are on other sides of the
triangle plane, and this triangle can't be a face, because we
want the polyhedron to be convex

to demo: press 9, press g, press space; press 9 over and over
2025-04-25 17:15:00 +00:00
root
620896fb49 begin drawing faces 2025-04-25 14:47:03 +00:00
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