|
@@ -1,40 +0,0 @@
|
|
|
-<!DOCTYPE html>
|
|
|
-<html lang="en">
|
|
|
- <head>
|
|
|
- <meta charset="utf-8" />
|
|
|
- <base href="../../../" />
|
|
|
- <script src="list.js"></script>
|
|
|
- <script src="page.js"></script>
|
|
|
- <link type="text/css" rel="stylesheet" href="page.css" />
|
|
|
- </head>
|
|
|
- <body>
|
|
|
- [page:Object3D] →
|
|
|
-
|
|
|
- <h1>[name]</h1>
|
|
|
-
|
|
|
- <div class="desc">An Object3d that rotates independently of its parent objects, but keeps the position and scale.</div>
|
|
|
-
|
|
|
- <code>
|
|
|
- var root = new THREE.Group();
|
|
|
- var gyro = new THREE.Gyroscope();
|
|
|
- var cube = new THREE.Mesh( geometry, material );
|
|
|
-
|
|
|
- root.add( gyro )
|
|
|
- gyro.add( cube )
|
|
|
-
|
|
|
- cube.position.x = 10;
|
|
|
- root.rotation.y = Math.PI;
|
|
|
-
|
|
|
- // The cube will have changed its position but maintained its orientation
|
|
|
- </code>
|
|
|
-
|
|
|
- <h2>Constructor</h2>
|
|
|
-
|
|
|
-
|
|
|
- <h3>[name]()</h3>
|
|
|
-
|
|
|
- <h2>Source</h2>
|
|
|
-
|
|
|
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
|
- </body>
|
|
|
-</html>
|