Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
summer_2019:pcubed_intro_project [2019/07/30 01:27] wellerd |
summer_2019:pcubed_intro_project [2019/07/31 23:02] (current) wellerd |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Project 2: Escape from Ice Station McMurdo ====== | + | ====== Escape from Ice Station McMurdo ====== |
===== Part A ===== | ===== Part A ===== | ||
Line 45: | Line 45: | ||
Surprisingly enough hovercrafts are an expensive piece of kit. Your employer, the Carver Media Group, is concerned by the happenings at the McMurdo ice station and would like you to produce an accident report detailing the events after you lost control of your hovercraft. The accident report should include a detailed computational model that provides the projected motion of the runaway hovercraft. | Surprisingly enough hovercrafts are an expensive piece of kit. Your employer, the Carver Media Group, is concerned by the happenings at the McMurdo ice station and would like you to produce an accident report detailing the events after you lost control of your hovercraft. The accident report should include a detailed computational model that provides the projected motion of the runaway hovercraft. | ||
- | To begin, copy the code below into a glowscript file. Follow the link for details: [[:glowscript_getting_started|Getting Started with Glowscript]]. | + | To begin, copy the code below into a glowscript file. |
<code> | <code> | ||
- | #get_library("https://raw.githubusercontent.com/perlatmsu/physutil/master/js/physutil.js") | + | |
+ | scene.camera.pos=vec(600,0,0) | ||
#Objects | #Objects | ||
Line 69: | Line 70: | ||
dt = 0.01 | dt = 0.01 | ||
- | #MotionMap/Graph | + | #Graph |
- | #runawaycraftMotionMap = MotionMap(runawaycraft, tf, 5, markerScale=1, labelMarkerOrder=False, markerColor=color.orange) | + | |
#Calculation Loop | #Calculation Loop |