Hello!
The API lists the mapPanning
property on ArcRotateCamera
but it is not implemented. Actually I didn’t find mapPanning
by searching the whole BabylonJS source code.
Thank you!
R.
Hello!
The API lists the mapPanning
property on ArcRotateCamera
but it is not implemented. Actually I didn’t find mapPanning
by searching the whole BabylonJS source code.
Thank you!
R.
Hmm, I did find this usage in arcRotateCamera.ts. It seems like when it’s set to false, the default, then double-click dragging vertically will pan up and down the screen, but when it’s set to true, I think it’s panning along the world z axis instead? If you try in this playground for example, it makes a big difference if I comment out line 7 which sets mapPanning to true.
// Eliminate y if mapPanning is enabled
if (this.mapPanning) {
this._transformedDirection.y = 0;
}
mapPanning
is new in 5.0, you must have looked into the 4.2 source code?
I was on 5.0.0-alpha.37. The mapPanning
property was missing. However after updating to the most current alpha.56 I can see that property.
Thank you!
Yup the doc is always matching latest