Default radius params on ArcRotateCamera

Hello there :slight_smile:

Not a “feature” in fact, but would it make sense to edit the default ArcRotateCamera radius params ?
Each time I add an ArcRotateCamera, I just need to set them :

camera.lowerRadiusLimit = 2.0
camera.wheelDeltaPercentage = 0.01

Otherwise, the default behavior looks like so :

  • Default wheel is pretty huge, you go from 10 to 0 in just one wheel increment
  • And then going negative radius makes no sense to be. The result is having an inverted radius, with inverted wheel behavior, as well as inverted mouse Y axis, and you need to zoom in again above limit to flip radius back to positive again :thinking:
2 Likes

The limits are depending so much of your scene I think it is easier to add a framing behavior for instance.

Adding a default value will probably (as well as being a breaking change :-)) bring more question about why the camera does not zoom close enough.

At least we could set the minimum to 0.0, avoiding negative radius and camera flip… I guess this would not be braking something for anybody, I have never seen the usage of negative radius to be honest ^^

1 Like

Probably fine for the minimum
We can set it up and if people complains we revert it back

1 Like