diff options
author | brynnchernosky <56202540+brynnchernosky@users.noreply.github.com> | 2023-05-02 20:47:11 -0400 |
---|---|---|
committer | brynnchernosky <56202540+brynnchernosky@users.noreply.github.com> | 2023-05-02 20:47:11 -0400 |
commit | 051d0b8feb3c6901788137f6c72a4bba34be2507 (patch) | |
tree | 52019e100a550917ec9db752f2bcea1e97fd7d01 /src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx | |
parent | 617d008889a6b9640bc9cf8a87d24a5ed24cb660 (diff) |
debugging
Diffstat (limited to 'src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx')
-rw-r--r-- | src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx | 6 |
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} |