From 7b2553514bb000eb7f618eb0f0d653baee78742c Mon Sep 17 00:00:00 2001
From: Eric <ericmabr@gmail.com>
Date: Sun, 13 Aug 2023 15:43:53 -0400
Subject: 1

---
 .../nodes/PhysicsBox/PhysicsSimulationWall.tsx     | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 src/client/views/nodes/PhysicsBox/PhysicsSimulationWall.tsx

(limited to 'src/client/views/nodes/PhysicsBox/PhysicsSimulationWall.tsx')

diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationWall.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationWall.tsx
new file mode 100644
index 000000000..8cc1d0fbf
--- /dev/null
+++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationWall.tsx
@@ -0,0 +1,34 @@
+import React = require('react');
+
+export interface Force {
+  magnitude: number;
+  directionInDegrees: number;
+}
+export interface IWallProps {
+  length: number;
+  xPos: number;
+  yPos: number;
+  angleInDegrees: number;
+}
+
+export default class Wall extends React.Component<IWallProps> {
+
+  constructor(props: any) {
+    super(props)
+  }
+
+  wallStyle = {
+    width: this.props.angleInDegrees == 0 ? this.props.length + "%" : "5px",
+    height: this.props.angleInDegrees == 0 ? "5px" : this.props.length + "%",
+    position: "absolute" as "absolute",
+    left: this.props.xPos + "%",
+    top: this.props.yPos + "%",
+    backgroundColor: "#6c7b8b",
+    margin: 0,
+    padding: 0,
+  };
+
+  render () {
+    return (<div style={this.wallStyle}></div>);
+  }
+};
-- 
cgit v1.2.3-70-g09d2

