From 051d0b8feb3c6901788137f6c72a4bba34be2507 Mon Sep 17 00:00:00 2001 From: brynnchernosky <56202540+brynnchernosky@users.noreply.github.com> Date: Tue, 2 May 2023 20:47:11 -0400 Subject: debugging --- src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx index 3cb34d5b9..5b2a30bfc 100644 --- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx +++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx @@ -381,10 +381,10 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent { - return this.yMax - this.dataDoc.yPos - 2 * this.radius + 5; + return this.yMax - yPos - 2 * this.radius + 5; }; getYPosFromDisplay = (yDisplay: number) => { - return this.yMax - this.dataDoc.yDisplay - 2 * this.radius + 5; + return this.yMax - yDisplay - 2 * this.radius + 5; }; // Update forces when coefficient of static friction changes in freeform mode @@ -1350,7 +1350,7 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent