-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDistanceProjectileMotion.nez
87 lines (84 loc) · 2.08 KB
/
DistanceProjectileMotion.nez
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"Problems": [{
"units": "m",
"gravity": -9.8,
"objects": [{
"type": "rect",
"centerX": 2.0,
"centerY": "{1}",
"mass": 5,
"isDynamic": true,
"angle": 0.0,
"width": 2,
"height": 2,
"initialVelocity": [0,0],
"forces":[0,0]
},
{
"type": "rect",
"centerX": 0.0,
"centerY": 0.0,
"mass": 10,
"isDynamic": false,
"angle": 0.0,
"width": 50,
"height": 5,
"initialVelocity":[0,0] ,
"forces": [0,0]
}
],
"varVals": {
"{1}": [8, 11]
},
"varValLabels": ["height"],
"problemText": "A block falls from a height of %1 meters, how long does it take to hit the ground?",
"displayWidgets": ["s=.5at^2"],
"solvingFormulas": ["(function(a) { return Math.sqrt(a*2/9.8);})"],
"inputWidgetUnits": ["sec"]
},
{
"units": "m",
"gravity": -9.8,
"objects": [{
"type": "circ",
"centerX": 2.0,
"centerY": "{1}",
"mass": 5,
"isDynamic": true,
"angle": 0.0,
"radius": 2,
"initialVelocity": ["{3}","{2}"],
"forces": [0,0],
"color": [0, 0, 0]
},
{
"type": "rect",
"centerX": 0.0,
"centerY": 0.0,
"mass": 10,
"isDynamic": false,
"angle": 0.0,
"width": 50,
"height": 5,
"initialVelocity":[0,0],
"forces": [0,0],
"color": [0, 0, 0]
}
],
"varVals": {
"{1}": [8, 11],
"{2}": [4, 6],
"{3}": [4,7]
},
"varValLabels": [
"Height",
"Initial Velocity Y",
"Initial Velocty X"
],
"problemText": "A ball is thrown upwards from a height of %1 meters, with an initial y velocity Vy0 = +%2 m/sec and an initial x velocity of Vx0 = +%3 how long does it take to hit the ground? How many meters does it travel along the ground before making contact",
"displayWidgets": ["s=.5at^2 + V0t + H0", "Initial Velocity"],
"solvingFormulas": ["(function(b, c) { return (-1 * b - Math.sqrt(b * b + 4 * 4.8 * c)) / -9.8;})","(function(b, c, d) { return ((-1 * b - Math.sqrt(b * b + 4 * 4.8 * c)) / -9.8)*d;})" ],
"inputWidgetUnits": ["sec", "meters"]
}
]
}