summaryrefslogtreecommitdiff
path: root/help.html
diff options
context:
space:
mode:
Diffstat (limited to 'help.html')
-rw-r--r--help.html61
1 files changed, 0 insertions, 61 deletions
diff --git a/help.html b/help.html
deleted file mode 100644
index 7b0405c..0000000
--- a/help.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <script type="text/javascript" src="/three_js/dist/three.min.js"></script>
- <script type="text/javascript" src="/physi_js/physi.js"></script>
-
-
-</head>
-
-<body>
-<div id="viewport"></div>
-
-<script type="text/javascript">
-
- 'use strict';
-
- Physijs.scripts.worker = '/physi_js/physijs_worker.js';
- Physijs.scripts.ammo = '/physi_js/ammo.js';
-
- var initScene, render, renderer, scene, camera, box;
-
- initScene = function() {
- renderer = new THREE.WebGLRenderer({ antialias: true });
- renderer.setSize( window.innerWidth, window.innerHeight );
- document.getElementById( 'viewport' ).appendChild( renderer.domElement );
-
- scene = new Physijs.Scene;
-
- camera = new THREE.PerspectiveCamera(
- 35,
- window.innerWidth / window.innerHeight,
- 1,
- 1000
- );
- camera.position.set( 60, 50, 60 );
- camera.lookAt( scene.position );
- scene.add( camera );
-
- // Box
- box = new Physijs.BoxMesh(
- new THREE.CubeGeometry( 5, 5, 5 ),
- new THREE.MeshBasicMaterial({ color: 0x888888 })
- );
- scene.add( box );
-
- requestAnimationFrame( render );
- };
-
- render = function() {
- box.applyCentralForce(new THREE.Vector3(1,0,0));
- scene.simulate(); // run physics
- renderer.render( scene, camera); // render the scene
- requestAnimationFrame( render );
- };
-
- window.onload = initScene();
-
-</script>
-</body>
-</html> \ No newline at end of file