getHand method

WebXRController? getHand(
  1. int index
)

Returns a group representing the hand space of the XR controller. Use this space for visualizing 3D objects that support the user in pointing tasks like UI interaction.

@param {number} index - The index of the controller. @return {Group} A group representing the hand space. /

Implementation

WebXRController? getHand(int index ) {
  WebXRController? controller = _getController( index );
  return controller?.getHandSpace();
}