From 9e1c341955fb016f4a62339e4f11ac42d9572e95 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Wed, 24 May 2023 16:39:38 -0400
Subject: render cleanup for phys vector arrows.

---
 src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx')

diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
index d3e1c6fd2..f4acba2a6 100644
--- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
+++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
@@ -87,7 +87,7 @@ export class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<FieldViewP
     wallPositions: IWallProps[] = [];
 
     @computed get circularMotionRadius() {
-        return NumCast(this.dataDoc.circularMotionRadius, 150);
+        return (NumCast(this.dataDoc.circularMotionRadius, 150) * this.props.PanelWidth()) / 1000;
     }
     @computed get gravity() {
         return NumCast(this.dataDoc.simulation_gravity, -9.81);
@@ -757,7 +757,7 @@ export class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<FieldViewP
         this.dataDoc.mass1_forcesUpdated = JSON.stringify([forceOfGravityReview, normalForceReview, staticFrictionForceReview]);
     };
 
-    pause = () => (this.dataDoc.paused = true);
+    pause = () => (this.dataDoc.simulation_paused = true);
     componentForces1 = () => PhysicsSimulationBox.parseJSON(StrCast(this.dataDoc.mass1_componentForces));
     setComponentForces1 = (forces: IForce[]) => (this.dataDoc.mass1_componentForces = JSON.stringify(forces));
     componentForces2 = () => PhysicsSimulationBox.parseJSON(StrCast(this.dataDoc.mass2_componentForces));
@@ -810,7 +810,7 @@ export class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<FieldViewP
             yMax: this.yMax,
             yMin: this.yMin,
             wallPositions: this.wallPositions,
-            gravity: this.gravity,
+            gravity: Math.abs(this.gravity),
             timestepSize: 0.05,
             showComponentForces: BoolCast(this.dataDoc.simulation_showComponentForces),
             coefficientOfKineticFriction: NumCast(this.dataDoc.coefficientOfKineticFriction),
-- 
cgit v1.2.3-70-g09d2

