diff options
author | bobzel <zzzman@gmail.com> | 2023-05-23 16:06:17 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-05-23 16:06:17 -0400 |
commit | 1413ba695ee3efcf8686f8a6c618ff0cdda634db (patch) | |
tree | 9875f683e5361716fa43ecdd6faa24539772bf61 /src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx | |
parent | 26af8ab71bec926e4514c7df2d523f1635f55f9b (diff) |
from last
Diffstat (limited to 'src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx')
-rw-r--r-- | src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx | 7 |
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(); |