earthquake simulation

34 views
Skip to first unread message

Dennisans

unread,
Aug 30, 2022, 4:32:23 AM8/30/22
to Glowscript Users
For my school project, i would like to make a earthquake simulation with Vpython. I'd be gald If  i can get any tips or helps. Here are some conditions of my project:

-There is a building shaped object. It is an rectangular box that has many holes(for windows).

-Building will be shaken by earthquake back and forth(not up and down).
.
-The spot of the center of the mass should be spotted every single moment.

Bruce Sherwood

unread,
Aug 30, 2022, 12:29:37 PM8/30/22
to Glowscript Users
The only VPython objects whose shapes can be dynamically altered are triangles and quads. Here is the documentation:

    https://www.glowscript.org/docs/VPythonDocs/triangle.html

Here are two demo programs that use this capability:

    https://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/Plot3D

    https://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/Rug

Bruce
Reply all
Reply to author
Forward
0 new messages