Slides link: https://docs.google.com/presentation/d/1TPKW42lxpiW0mEz1YzxVya_1klS9PkXbDWdFpSNEFX0/edit?usp=sharing
Instructions:
-
Run server.py, and connect to http://localhost:1337/
-
From this page, click on the link "Wrecking Ball Project." This will load the simulation in your browser window.
-
In order to start the script, click "Start Script" at the top of the page.
a) There are sliders that adjust the values of the timestep variable and breakingThreshold variable. The default values are optimal. Increasing the timestep will make the simulation run faster. Reducing the breaking threshold will make the bricks easier to break. Increasing the breaking threshold will make the bricks hard to break.
b) There are five predefined structures that can be implemented. In order to simulate each structure, the layoutPreset variable needs to be modified. This variable can be found in main.js on line 57. The following is a a list of each value and the corresponding structures associated with those values:const layoutPreset = 1; //Wall laid flat, resembling a paved area of bricks
const layoutPreset = 2; //Wall standing straight up
const layoutPreset = 3; //Pillars arranged diagonally, forming a diagonal wall
const layoutPreset = 4; //Pyramid structure
const layoutpreset = 5; //4x4x4 cube