From d7fc87e0c0b6782f803fc90cd21a333340120d90 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 17 Jul 2021 22:51:13 +0200 Subject: just added so much, bad commit --- app/components/tweaks/tweaks.tsx | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'app/components/tweaks') diff --git a/app/components/tweaks/tweaks.tsx b/app/components/tweaks/tweaks.tsx index e235ad4..8913e98 100644 --- a/app/components/tweaks/tweaks.tsx +++ b/app/components/tweaks/tweaks.tsx @@ -41,6 +41,18 @@ export const Tweaks = observer(function Tweaks(props: TweaksProps): JSX.Element title: "Physics", content: + + { setPhysics({ ...physics, gravityOn: !physics.gravityOn })}} + /> + + { setPhysics({ ...physics, gravity: value }) }} + value={physics.gravity} + step={0.01} /> { setPhysics({ ...physics, collision: !physics.collision }) }} /> + + { setPhysics({ ...physics, alphaDecay: value }) }} + value={physics.alphaDecay} + step={.01} /> + + { setPhysics({ ...physics, alphaTarget: value }) }} + value={physics.alphaTarget} + step={0.1} + /> + + { setPhysics({ ...physics, velocityDecay: value }) }} + value={physics.velocityDecay} + step={0.01} /> , }, { title: 'Visual', content: + + { setPhysics({ ...physics, colorful: !physics.colorful })}} + /> + + { setPhysics({ ...physics, hover: !physics.hover })}} + />