提交 7d81dc29 编写于 作者: D Diego Marcos

Address review comments

上级 59c50e7b
......@@ -112,6 +112,10 @@ function WebVRManager( renderer ) {
poseObject.position.fromArray( pose.position );
} else {
poseObject.position.set( 0, 0, 0 );
}
if ( pose.orientation !== null ) {
......@@ -128,10 +132,8 @@ function WebVRManager( renderer ) {
standingMatrix.makeTranslation(0, scope.userHeight, 0);
}
standingMatrixInverse.getInverse( standingMatrix );
poseObject.position.applyMatrix4( standingMatrix );
poseObject.updateMatrixWorld();
camera.matrixWorldInverse.multiply( standingMatrixInverse );
if ( device.isPresenting === false ) return camera;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册