aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-05-23 16:06:17 -0400
committerbobzel <zzzman@gmail.com>2023-05-23 16:06:17 -0400
commit1413ba695ee3efcf8686f8a6c618ff0cdda634db (patch)
tree9875f683e5361716fa43ecdd6faa24539772bf61 /src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
parent26af8ab71bec926e4514c7df2d523f1635f55f9b (diff)
from last
Diffstat (limited to 'src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx')
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
index bb41cd72e..e2b882389 100644
--- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
+++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
@@ -174,16 +174,13 @@ export class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<FieldViewP
// Constants
xMin = 0;
yMin = 0;
- xMax = 100;
- yMax = 100;
+ xMax = this.props.PanelWidth() * 0.6;
+ yMax = this.props.PanelHeight() * 0.9;
color = `rgba(0,0,0,0.5)`;
radius = 50;
wallPositions: IWallProps[] = [];
componentDidMount() {
- this.xMax = this.props.PanelWidth() * 0.6;
- this.yMax = this.props.PanelHeight() * 0.9;
-
// Setup simulation
this.setupSimulation();