Skip to content

A study of Newtonian collision and force threshold to simulate crumbling of simple structures. Completed as a final project for CS485 - AI for Simulated Worlds @ NJIT

Notifications You must be signed in to change notification settings

itsjayway/simulating-breaking-contraint-for-agents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

cs485-wreckingBall

Andrew Snedeker & Jibran Absarulislam

Instructions:

  1. Run server.py, and connect to http://localhost:1337/

  2. From this page, click on the link "Wrecking Ball Project." This will load the simulation in your browser window.

  3. 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

About

A study of Newtonian collision and force threshold to simulate crumbling of simple structures. Completed as a final project for CS485 - AI for Simulated Worlds @ NJIT

Resources

Stars

Watchers

Forks

Languages