提交 7aba69b7 编写于 作者: M Mr.doob

WebXRManager: Only display controller when targetRayMode is pointing.

上级 e516dbbc
......@@ -352,7 +352,12 @@ function WebXRManager( renderer, gl ) {
controller.matrix.fromArray( inputPose.transform.matrix );
controller.matrix.decompose( controller.position, controller.rotation, controller.scale );
controller.visible = true;
if ( inputSource.targetRayMode === 'pointing' ) {
controller.visible = true;
}
continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册