forked from schteppe/ammo.js-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
225 lines (193 loc) · 4.46 KB
/
index.html
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>schteppe/ammo.js-demos @ GitHub</title>
<style type="text/css">
* {
margin:0;
}
body {
margin: 40px 0px;
}
h1,h2, p {
margin:10px;
}
img.thumb {
max-height:100px;
float:right;
margin:10px;
}
h1 {
font-size:28px;
font-family:Vera, Helvetica,Georgia;
padding:0;
margin-top:7px;
font-size:36px;
color:#FFF;
text-decoration:none;
/*text-transform:uppercase;*/
line-height:1.2em;
}
h1 a {
text-decoration:none;
}
a {
color:white;
}
body {
background-color:#2C2C29;
font-family:Helvetica;
font-size:12px;
color:white;
line-height:1.6em;
}
canvas {
/* background-color:black;*/
}
#hudCanvas {
position:absolute;
left:0;
top:0;
font-size:24px;
}
#canvasContainer, #theCanvas, #error {
/*height:675px;
width:1200px;*/
height:500px;
width:888px;
position:absolute;
top:0;
left:0;
}
#error {
position:absolute;
top:0;
left:0;
}
#info {
position:absolute;
top:0px;
left:888px;
padding:10px;
width:300px;
}
.button {
text-align: center;
display: block;
margin: 10px auto;
text-decoration: none;
padding: 10px 50px;
border: 1px;
background: black;
font: bold 18px Helvetica,Georgia,serif;
color: white;
clear: both;
border-radius: 5px;
width:290px;
}
.demo, #index_info {
text-align:left;
width:700px;
margin:auto;
}
.demo {
padding:10px;
box-shadow:0px 0px 10px #000;
background-color:#3F3F3F;
height:100px;
margin-top:20px;
}
.demo:hover {
background-color:#4F4F4F;
}
.demo img {
margin:0px;
margin-left:10px;
}
.demo a {
text-decoration:none;
}
.fb-like {
width:350px;
margin:10px;background-color:silver;padding:10px;border-radius:10px;box-shadow:4px 4px 4px #000
}
#threeinfo a {
color:white;
}
#threeinfo {
font-family:Georgia;
color:#eee;
position:absolute;
top:0;
left:0;
z-index:1000;
}
</style>
</head>
<body>
<a href="https://github.com/schteppe/ammo.js-demos"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
<div id="index_info">
<h1><a href="https://github.com/schteppe/ammo.js-demos">ammo.js-demos</a>
<span class="small">by <a href="https://github.com/schteppe">schteppe</a></span></h1>
<p>
Demo application base class and 3D physics demos based on ammo.js. Support for several scenegraphs including Three.js and SceneJS.
</p>
<h2>Authors</h2>
<p>Stefan Hedman ([email protected])<br/> </p>
<h2>Download</h2>
<p>
Get the source code on GitHub : <a href="https://github.com/schteppe/ammo.js-demos">schteppe/ammo.js-demos</a>
</p>
</div>
<div class="demo">
<a href="demos/ChessDemo/index.html">
<img src="demos/ChessDemo/thumb.png" class="thumb">
<h2>ChessDemo</h2>
<p>A chessboard with physics.</p>
</a>
</div>
<div class="demo">
<a href="demos/CarsDemo/index.html">
<img src="demos/CarsDemo/thumb.jpg" class="thumb">
<h2>CarsDemo</h2>
<p>A car and two piles of.. letters?</p>
</a>
</div>
<div class="demo">
<a href="demos/PendulumDemo/index.html">
<img src="demos/PendulumDemo/thumb.png" class="thumb">
<h2>PendulumDemo</h2>
<p>A double pendulum.</p>
</a>
</div>
<div class="demo">
<a href="demos/RagdollDemo/index.html">
<img src="demos/RagdollDemo/thumb.png" class="thumb">
<h2>RagdollDemo</h2>
<p>This is Bob. Bob likes to play. Just make sure he doesn't get hurt...</p>
</a>
</div>
<div class="demo">
<a href="demos/RagdollDemo/three.html">
<img src="demos/RagdollDemo/thumb.png" class="thumb">
<h2>RagdollDemo in Three.js</h2>
<p>Same Ragdoll demo, but rendered using Three.js</p>
</a>
</div>
<div class="demo">
<a href="demos/VehicleDemo/index.html">
<img src="demos/VehicleDemo/thumb.png" class="thumb">
<h2>VehicleDemo</h2>
<p>Use the arrow keys to control a little car.</p>
</a>
</div>
<div class="demo">
<a href="demos/BoxDemo/index.html">
<img src="demos/BoxDemo/thumb.png" class="thumb">
<h2>BoxDemo</h2>
<p>25 boxes are stacked on each other to form a wall. Tear the wall down using the mouse or shoot spheres at it to see it fall.</p>
</a>
</div>
</body>
</html>