threlte logo
@threlte/xr

useHand

Provides a reference to a current XRHand, filtered by handedness.

<script>
  import { useHand } from '@threlte/xr'

  const leftHand = useHand('left')
  const rightHand = useHand('right')
</script>

Signature

// CurrentWritable<XRHand | undefined> - The current XRHand
const hand = useHand('left')