Simulate Earthquakes for Video Game Physics Class

AI Thread Summary
To create an earthquake simulation for a video game physics class, focus on applying vibrational inputs to structures that mimic real seismic events. Start with a flat surface and use an iPad to shake it in multiple directions, constructing buildings from rigid body blocks of varying sizes. Assign mass and inertia to these blocks to enhance realism, ensuring larger blocks represent structural elements like columns. Incorporate friction or stickiness between the blocks to maintain structural integrity during the simulation. Experiment with different scales and components to achieve a visually interesting effect that fits the game's physics requirements.
marchinram
Messages
2
Reaction score
0
Hello,
I want to write an earthquake simulation for one of my programming classes and wanted to know where to look to get started understanding some of the forces and other properties of earthquakes. This is for a video game physics class so it doesn't have to be super accurate the class is more about learning how to incorporate physics into your games but I would like it to look somewhat realistic. I'm planning on using opengl to render some buildings made of blocks and having them crumble when someone shakes an iPad. Any help on how to get started from the physics side would be very helpful. Thanks!
 
Physics news on Phys.org
Hi dear,
Earthquake simulation applies a real or simulated vibrational input to a structure that possesses the essential features of a real seismic event. Earthquake simulations are generally performed to study the effects of earthquakes on man-made engineered structures, or on natural features which may present a hazard during an earthquake.
 
Yeah i understand, but I'm making it for a video games physics class and I'm by no means an expert in physics, I was just hoping for some advice to write a basic one that is visually interesting more than realistic. I wrote a basic physics engine which can apply forces to particles and rigid bodies, I was hoping to use that knowledge to make something cool.
 
Basic Advice: start off with a flat surface. Use the input from the ipad to shake this flat surface in x,y,z directions. On the flat surface, construct "buildings" which are comprised of rigid body blocks of different sizes. Give each of these rigid bodies a mass - you need inertia for the earthquake to do its work. Use large blocks for things like columns, window frames, etc. Then make the rest of the building out of small blocks. If opengl allows you to apply friction or stickiness between bodies, use this to keep the buildings together. Then try giving your model a shake, and see how it looks. If it looks too much like a toddler's block house falling down, decrease the scale of your components. If it looks like a sandcastle collapsing, add more big structural elements.

For fun, make some of the smaller rigid bodies in the buildings people shaped.
 
So I know that electrons are fundamental, there's no 'material' that makes them up, it's like talking about a colour itself rather than a car or a flower. Now protons and neutrons and quarks and whatever other stuff is there fundamentally, I want someone to kind of teach me these, I have a lot of questions that books might not give the answer in the way I understand. Thanks
I am attempting to use a Raman TruScan with a 785 nm laser to read a material for identification purposes. The material causes too much fluorescence and doesn’t not produce a good signal. However another lab is able to produce a good signal consistently using the same Raman model and sample material. What would be the reason for the different results between instruments?
Back
Top