|
@@ -1,49 +1,48 @@
|
|
<html lang="en">
|
|
<html lang="en">
|
|
- <head>
|
|
|
|
- <title>Amjs softbody rope demo</title>
|
|
|
|
- <meta charset="utf-8">
|
|
|
|
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
|
|
- <style>
|
|
|
|
- body {
|
|
|
|
- color: #61443e;
|
|
|
|
- font-family:Monospace;
|
|
|
|
- font-size:13px;
|
|
|
|
- text-align:center;
|
|
|
|
-
|
|
|
|
- background-color: #bfd1e5;
|
|
|
|
- margin: 0px;
|
|
|
|
- overflow: hidden;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- #info {
|
|
|
|
- position: absolute;
|
|
|
|
- top: 0px; width: 100%;
|
|
|
|
- padding: 5px;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- a {
|
|
|
|
-
|
|
|
|
- color: #a06851;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- </style>
|
|
|
|
- </head>
|
|
|
|
- <body>
|
|
|
|
|
|
+ <head>
|
|
|
|
+ <title>Amjs softbody rope demo</title>
|
|
|
|
+ <meta charset="utf-8">
|
|
|
|
+ <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
|
|
+ <style>
|
|
|
|
+ body {
|
|
|
|
+ color: #61443e;
|
|
|
|
+ font-family:Monospace;
|
|
|
|
+ font-size:13px;
|
|
|
|
+ text-align:center;
|
|
|
|
+
|
|
|
|
+ background-color: #bfd1e5;
|
|
|
|
+ margin: 0px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ #info {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 0px; width: 100%;
|
|
|
|
+ padding: 5px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ a {
|
|
|
|
+ color: #a06851;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ </style>
|
|
|
|
+ </head>
|
|
|
|
+ <body>
|
|
<div id="info">Ammo.js physics soft body rope demo<br>Press Q or A to move the arm.</div>
|
|
<div id="info">Ammo.js physics soft body rope demo<br>Press Q or A to move the arm.</div>
|
|
- <div id="container"><br /><br /><br /><br /><br />Loading...</div>
|
|
|
|
|
|
+ <div id="container"><br /><br /><br /><br /><br />Loading...</div>
|
|
|
|
|
|
<script src="../build/three.js"></script>
|
|
<script src="../build/three.js"></script>
|
|
<script src="js/libs/ammo.js"></script>
|
|
<script src="js/libs/ammo.js"></script>
|
|
<script src="js/controls/OrbitControls.js"></script>
|
|
<script src="js/controls/OrbitControls.js"></script>
|
|
- <script src="js/Detector.js"></script>
|
|
|
|
|
|
+ <script src="js/Detector.js"></script>
|
|
<script src="js/libs/stats.min.js"></script>
|
|
<script src="js/libs/stats.min.js"></script>
|
|
|
|
|
|
- <script>
|
|
|
|
|
|
+ <script>
|
|
|
|
|
|
// Detects webgl
|
|
// Detects webgl
|
|
if ( ! Detector.webgl ) {
|
|
if ( ! Detector.webgl ) {
|
|
- Detector.addGetWebGLMessage();
|
|
|
|
- document.getElementById( 'container' ).innerHTML = "";
|
|
|
|
|
|
+ Detector.addGetWebGLMessage();
|
|
|
|
+ document.getElementById( 'container' ).innerHTML = "";
|
|
}
|
|
}
|
|
|
|
|
|
// - Global variables -
|
|
// - Global variables -
|
|
@@ -473,7 +472,7 @@
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- </script>
|
|
|
|
|
|
+ </script>
|
|
|
|
|
|
- </body>
|
|
|
|
|
|
+ </body>
|
|
</html>
|
|
</html>
|