未验证 提交 1578a2f5 编写于 作者: A Aki Rodić 提交者: GitHub

Added "controllermove" event to WebXRController (#20790)

Co-authored-by: NAki Rodic <rodic@adobe.com>
上级 d4dcc6d5
......@@ -218,18 +218,24 @@ class WebXRController {
targetRay.visible = ( inputPose !== null );
if ( targetRay.visible ) targetRay.dispatchEvent( { type: 'controllermove' } );
}
if ( grip !== null ) {
grip.visible = ( gripPose !== null );
if ( grip.visible ) grip.dispatchEvent( { type: 'controllermove' } );
}
if ( hand !== null ) {
hand.visible = ( handPose !== null );
if ( hand.visible ) hand.dispatchEvent( { type: 'controllermove' } );
}
return this;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册