aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
diff options
context:
space:
mode:
authorbrynnchernosky <56202540+brynnchernosky@users.noreply.github.com>2023-05-04 11:36:18 -0400
committerbrynnchernosky <56202540+brynnchernosky@users.noreply.github.com>2023-05-04 11:36:18 -0400
commit550d2d4b02bbaa19d6ca1b7f4d6146f4ed171bab (patch)
treec40bea44a1e4bbd5985f8695584ebf8d76e05785 /src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
parentd980b13b7e161b68af0eb0f47cdac63e891f86b5 (diff)
pulley debugging
Diffstat (limited to 'src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx')
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
index 27f57070e..4e7d0e7e6 100644
--- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
+++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
@@ -132,9 +132,9 @@ export default class Weight extends React.Component<IWeightProps, IState> {
display: "flex",
height: 2 * this.props.radius + "px",
justifyContent: "center",
- left: this.props.dataDoc['startPosX'] + "px",
+ left: this.props.startPosX + "px",
position: "absolute" as "absolute",
- top: this.props.dataDoc['startPosY'] + "px",
+ top: this.props.startPosY + "px",
touchAction: "none",
width: 2 * this.props.radius + "px",
zIndex: 5,
@@ -436,7 +436,7 @@ export default class Weight extends React.Component<IWeightProps, IState> {
// Update wedge coordinates
if (prevProps.wedgeWidth != this.props.wedgeWidth || prevProps.wedgeHeight != this.props.wedgeHeight) {
- const left = this.props.xMax * 0.5 - 200;
+ const left = this.props.xMax * 0.25;
const coordinatePair1 = Math.round(left) + "," + this.props.yMax + " ";
const coordinatePair2 = Math.round(left + this.props.wedgeWidth) + "," + this.props.yMax + " ";
const coordinatePair3 = Math.round(left) + "," + (this.props.yMax - this.props.wedgeHeight);