aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx6
1 files changed, 3 insertions, 3 deletions
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<Fi
// Helper function to go between display and real values
getDisplayYPos = (yPos: number) => {
- 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<Fi
paused={this.dataDoc.simulationPaused}
pendulumAngle={this.dataDoc.pendulumAngle}
pendulumLength={this.dataDoc.pendulumLength}
- radius={this.dataDoc.radius}
+ radius={this.radius}
reset={this.dataDoc.simulationReset}
simulationSpeed={this.dataDoc.simulationSpeed}
startPendulumAngle={this.dataDoc.startPendulumAngle}