topical media & game development

talk show tell print

mobile-query-three-plugins-controls-examples-threejs-controls.htm / htm



  <!doctype html><title>Minimal tQuery Page</title>
  <script src="../../../build/tquery-bundle-require.js"></script>
  <body><script>
  require(['tquery.controls'], function(){
          var world        = tQuery.createWorld().boilerplate().start();
          var object	= tQuery.createTorusKnot().addTo(world);
          
          // here is how to plug a three.js to controls the camera
          var tCamera        = world.tCamera();
          var controls        = new THREE.OrbitControls( tCamera );
          world.setCameraControls(controls);
  });
  </script></body>


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.