📝 3D統合コード

hands.onResults((results) => {
  if (results.multiHandLandmarks) {
    for (const landmarks of results.multiHandLandmarks) {
      const gesture = recognizeGesture(landmarks);
      if (gesture) {
        handleGesture(gesture, landmarks);
      }
    }
  }
});

// ジェスチャーに応じた処理
function handleGesture(gesture, landmarks) {
  if (gesture === "グー") {
    // 動画をVideoTextureとして表示
    playGestureVideo(landmarks);
  }
}