提交 34739a03 编写于 作者: M Mr.doob

Fixed position of cubes emission in daydream/gearvr examples.

上级 e5f09777
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
var cube = room.children[ 0 ]; var cube = room.children[ 0 ];
room.remove( cube ); 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.x = ( Math.random() - 0.5 ) * 0.02 * delta;
cube.userData.velocity.y = ( 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; cube.userData.velocity.z = ( Math.random() * 0.01 - 0.05 ) * delta;
......
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
var cube = room.children[ 0 ]; var cube = room.children[ 0 ];
room.remove( cube ); 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.x = ( Math.random() - 0.5 ) * 0.02 * delta;
cube.userData.velocity.y = ( 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; cube.userData.velocity.z = ( Math.random() * 0.01 - 0.05 ) * delta;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册