Bitbybit Docs
    Preparing search index...

    Class BabylonArcRotateCamera

    The orbiting camera: it circles a target point at a distance, the way you would turn a product in your hands, and is the camera this library uses by default. Angles are given in degrees: alpha around the vertical axis, beta down from the top.

    Index

    Constructors

    create

    Constructors

    create

    • Creates a camera that orbits target at distance radius, controlled by the pointer on the canvas, and adds it to the scene without activating it.

      alpha and beta place it in degrees, beta counted down from straight above; the limits fence how far it can zoom and orbit, and the sensibilities set how fast it reacts, lower being faster.

      Parameters

      Returns ArcRotateCamera

      The orbiting camera

      const camera = bitbybit.babylon.camera.arcRotate.create({ radius: 20, target: [0, 0, 0], alpha: 45, beta: 70, lowerBetaLimit: 1, upperBetaLimit: 179, angularSensibilityX: 1000, angularSensibilityY: 1000, panningSensibility: 1000, wheelPrecision: 3, maxZ: 1000 });
      bitbybit.babylon.scene.activateCamera({ camera });