https://github.com/habrador/earthquake-simulator
Simulation of how buildings behave during an earthquake
https://github.com/habrador/earthquake-simulator
earthquake open-source simulation unity unity3d
Last synced: about 1 year ago
JSON representation
Simulation of how buildings behave during an earthquake
- Host: GitHub
- URL: https://github.com/habrador/earthquake-simulator
- Owner: Habrador
- License: mit
- Created: 2022-01-18T18:41:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-05T11:00:17.000Z (almost 4 years ago)
- Last Synced: 2025-04-15T04:17:37.875Z (about 1 year ago)
- Topics: earthquake, open-source, simulation, unity, unity3d
- Language: C#
- Homepage:
- Size: 59.6 KB
- Stars: 17
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Earthquake Simulator in Unity
Simulation of how buildings behave during an earthquake. The basic ideas comes from an old school book of mine called "Differential Equations with Boundary-Value Problems" by Zill and Cullen. The chapter itself is called "Earthquake shaking of multistory buildings." The basic idea is that you connect each floor with a spring and then simulate each spring with Euler Forward. The ground is moved with random values. You could find some real earthquake data to shake the ground, but you have to do that on your own!!!
This is how it looks in action:
[](https://www.youtube.com/watch?v=OTUkXm5mD58)
Notice that this is an old video and the Unity project is a little simpler because I had to remove some stuff to fix errors after upgrading to latest Unity version!