Template:Team:UC Davis/MutantWidget

From 2011.igem.org

(Difference between revisions)
Line 508: Line 508:
$container.mousemove(function(event)
$container.mousemove(function(event)
{
{
-
// origin_camera.rotation.y += (-lastMouseX + event.pageX)/70;
+
origin_camera.rotation.y += (-lastMouseX + event.pageX)/70;
-
origin_object.rotation.x += (-lastMouseY + event.pageY)/70;
+
// origin_object.rotation.x += (-lastMouseY + event.pageY)/70;
if(origin_object.rotation.x > 0)
if(origin_object.rotation.x > 0)
{
{

Revision as of 04:39, 25 September 2011