提交 f19cfa30 编写于 作者: D Diego Marcos

Remove redundant userHeight

上级 cfd22c2c
......@@ -72,7 +72,7 @@ THREE.ViveController = function ( id ) {
if ( pose.position !== null ) scope.position.fromArray( pose.position );
if ( pose.orientation !== null ) scope.quaternion.fromArray( pose.orientation );
scope.matrix.compose( scope.position, scope.quaternion, scope.scale );
scope.matrix.multiplyMatrices( scope.standingMatrix, scope.matrix );
scope.matrix.premultiply( scope.standingMatrix );
scope.matrixWorldNeedsUpdate = true;
scope.visible = true;
......
......@@ -112,11 +112,7 @@ function WebVRManager( renderer ) {
poseObject.position.fromArray( pose.position );
} else {
poseObject.position.set( 0, scope.userHeight, 0 );
}
}
if ( pose.orientation !== null ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册