Skip to content

Instantly share code, notes, and snippets.

@jbilcke
Created November 9, 2011 16:39
Show Gist options
  • Save jbilcke/1352011 to your computer and use it in GitHub Desktop.
Save jbilcke/1352011 to your computer and use it in GitHub Desktop.
I SMELL A BUG THERE
switch (obj) {
case 'y' : tween = new TWEEN.Tween(camera.position).to({x:camera.position.x-to}, 2000).delay(0).easing(TWEEN.Easing.Circular.EaseOut).onUpdate( function() {}).start(); break;
case 'x' : tween = new TWEEN.Tween(camera.position).to({z:camera.position.z-to}, 2000).delay(0).easing(TWEEN.Easing.Circular.EaseOut).onUpdate( function() {}).start(); break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment