diff options
author | brynnchernosky <56202540+brynnchernosky@users.noreply.github.com> | 2023-02-21 12:07:39 -0500 |
---|---|---|
committer | brynnchernosky <56202540+brynnchernosky@users.noreply.github.com> | 2023-02-21 12:07:39 -0500 |
commit | 0fd4eb6a8bf80861345633aabe6d482c24cb4d70 (patch) | |
tree | 755a11ee50f70cc8211450e84487903470d81461 /src/client/views/nodes/PhysicsSimulationWeight.tsx | |
parent | b8762e80e3fd6b1c78b62f6bd50acb2029a68f58 (diff) |
settings menu
Diffstat (limited to 'src/client/views/nodes/PhysicsSimulationWeight.tsx')
-rw-r--r-- | src/client/views/nodes/PhysicsSimulationWeight.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/PhysicsSimulationWeight.tsx b/src/client/views/nodes/PhysicsSimulationWeight.tsx index b9fa14df0..66af645b5 100644 --- a/src/client/views/nodes/PhysicsSimulationWeight.tsx +++ b/src/client/views/nodes/PhysicsSimulationWeight.tsx @@ -769,12 +769,12 @@ export default class Weight extends React.Component<IWeightProps, IState> { let arrowEndY: number = arrowStartY - Math.abs(force.magnitude) * - 20 * + 10 * Math.sin((force.directionInDegrees * Math.PI) / 180); const arrowEndX: number = arrowStartX + Math.abs(force.magnitude) * - 20 * + 10 * Math.cos((force.directionInDegrees * Math.PI) / 180); let color = "#0d0d0d"; |