From b8762e80e3fd6b1c78b62f6bd50acb2029a68f58 Mon Sep 17 00:00:00 2001
From: brynnchernosky <56202540+brynnchernosky@users.noreply.github.com>
Date: Mon, 20 Feb 2023 13:46:55 -0500
Subject: start sim settings menu
---
src/client/views/nodes/PhysicsSimulationBox.scss | 16 +++++
src/client/views/nodes/PhysicsSimulationBox.tsx | 73 +++++++++++++++++++---
src/client/views/nodes/PhysicsSimulationWeight.tsx | 1 -
3 files changed, 80 insertions(+), 10 deletions(-)
(limited to 'src')
diff --git a/src/client/views/nodes/PhysicsSimulationBox.scss b/src/client/views/nodes/PhysicsSimulationBox.scss
index cfe2ee6ca..9efe835a3 100644
--- a/src/client/views/nodes/PhysicsSimulationBox.scss
+++ b/src/client/views/nodes/PhysicsSimulationBox.scss
@@ -49,3 +49,19 @@ button {
user-select: none;
pointer-events: none;
}
+
+.mechanicsSimulationSettingsMenu {
+ width: 100%;
+ height: 100%;
+ font-size: 12px;
+ background-color: purple;
+ border-radius: 2px;
+ border-color: black;
+ border-style: solid;
+ z-index: 20000;
+}
+
+.mechanicsSimulationSettingsMenuRow {
+ display: flex;
+ z-index: 20000;
+}
\ No newline at end of file
diff --git a/src/client/views/nodes/PhysicsSimulationBox.tsx b/src/client/views/nodes/PhysicsSimulationBox.tsx
index 0f2bc43a0..b7f4ed0fb 100644
--- a/src/client/views/nodes/PhysicsSimulationBox.tsx
+++ b/src/client/views/nodes/PhysicsSimulationBox.tsx
@@ -7,8 +7,8 @@ import "./PhysicsSimulationBox.scss";
import Weight from "./PhysicsSimulationWeight";
import Wall from "./PhysicsSimulationWall"
import Wedge from "./PhysicsSimulationWedge"
-import { isUndefined } from "lodash";
-
+import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
+import { CheckBox } from "../search/CheckBox";
export interface IForce {
description: string;
magnitude: number;
@@ -53,6 +53,7 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent
Elastic collisions
+Inclined plane angle
+input field!
+Pendulum angle
+input field!
+Show forces
+Show acceleration
+Show velocity
+