diff --git a/examples/webvr_daydream.html b/examples/webvr_daydream.html index 2b1618e75af29e22a8bea897b89573c9b2c24959..4fd57a3ac359c7f1fde16b422e8691107b9cdea8 100644 --- a/examples/webvr_daydream.html +++ b/examples/webvr_daydream.html @@ -172,7 +172,7 @@ var cube = room.children[ 0 ]; room.remove( cube ); - cube.position.copy( controller.position ); + cube.position.copy( controller.position ).sub( room.position ); cube.userData.velocity.x = ( Math.random() - 0.5 ) * 0.02 * delta; cube.userData.velocity.y = ( Math.random() - 0.5 ) * 0.02 * delta; cube.userData.velocity.z = ( Math.random() * 0.01 - 0.05 ) * delta; diff --git a/examples/webvr_gearvr.html b/examples/webvr_gearvr.html index f500f193c06cbc8a0c90b33b4eda28a4a5cde133..c19d665a17b652bb066be05d681c08e2dd1ae959 100644 --- a/examples/webvr_gearvr.html +++ b/examples/webvr_gearvr.html @@ -180,7 +180,7 @@ var cube = room.children[ 0 ]; room.remove( cube ); - cube.position.copy( controller.position ); + cube.position.copy( controller.position ).sub( room.position ); cube.userData.velocity.x = ( Math.random() - 0.5 ) * 0.02 * delta; cube.userData.velocity.y = ( Math.random() - 0.5 ) * 0.02 * delta; cube.userData.velocity.z = ( Math.random() * 0.01 - 0.05 ) * delta;