Black Trigram (흑괘) - Korean Martial Arts Combat Simulator API - v0.6.47
    Preparing search index...

    Function createCameraConfig

    • Create camera configuration based on device type.

      Mobile devices get a tighter FOV and closer camera position for better framing of the smaller arena. Desktop gets a wider FOV and further camera for full arena view.

      Korean: 카메라 설정 생성

      Parameters

      • isMobile: boolean

        Whether the device is mobile

      Returns CameraConfiguration

      Camera configuration for device type

      const mobile = createCameraConfig(true);
      // { fov: 55, position: [0, 6, 10], near: 0.1, far: 1000 }

      const desktop = createCameraConfig(false);
      // { fov: 60, position: [0, 8, 12], near: 0.1, far: 1000 }