ArcRotateCamera Pan and Zoom sensitivity

wish babylonjs has threejs map control

sounds like a cool feat to add !!! :slight_smile:

I use this params to set camera behavior

var camera = new ArcRotateCamera(
        "Camera",
        0,
        0,
        1000,
        new Vector3(0, 0, 0),
        scene
      );

      camera.wheelPrecision = 12
      //camera.upperAlphaLimit = Math.PI*0.5
      camera.upperBetaLimit = 1.4;

      //camera.lowerAlphaLimit = Math.PI*0.2
      camera.lowerBetaLimit = 0;
      
      //map control ?
      camera.panningAxis = new Vector3(2,0,-3)
      camera.panningDistanceLimit = 50
      camera.panningOriginTarget=new Vector3(0,0,0)
      camera.useNaturalPinchZoom = true
      camera.lowerRadiusLimit = 10
      camera.upperRadiusLimit = 100
  
      // This positions the camera
      camera.setPosition(new Vector3(19, 5, 8));

      // This attaches the camera to the canvas
      camera.attachControl(canvas, true);
      camera._panningMouseButton = 0

I don’t know whether it is right

Sorry I didn’t get notified about the reply! I can create a sample but it is not only a matter of changing the default values, I can tweak them and also a ThreeJS one to compare.

Again I compare it with ThreeJS because it is Babylon’s natural competitor, but I can prepare a video comparative with others like Sketchfab or offline tool like Blender or Unreal because all them share the same behavior.

1 Like

I tested to find that camera.target.y was changing

  scene.onBeforeRenderObservable.add(()=>{
    camera.target.y=0; 
  })