FollowCamera warning

How should we treat this warning?

  • @babylonjs/core: 7.9.0

image

image

BJS: It probably only makes sense to control ONE camera property with each pointer axis. Set 'warningEnable = false' if you are sure. Currently enabled: axisXControlRotation: true, axisXControlHeight: false, axisXControlRadius: false
e._LogEnabled @ logger.ts:107
t._warning @ followCameraPointersInput.ts:196
t.onTouch @ followCameraPointersInput.ts:119
_pointerInput @ BaseCameraPointersInput.ts:195
e.notifyObservers @ observable.ts:393
e._processPointerMove @ scene.inputManager.ts:257
_onPointerMove @ scene.inputManager.ts:807
(anonymous) @ scene.inputManager.ts:1059
e.notifyObservers @ observable.ts:393
e._onInputChanged @ deviceSourceManager.ts:164
o @ internalDeviceSourceManager.ts:79
_pointerMoveEvent @ webDeviceInputSystem.ts:474
logger.ts:107 

BJS: It probably only makes sense to control ONE camera property with each pointer axis. Set 'warningEnable = false' if you are sure. Currently enabled: axisYControlRotation: false, axisYControlHeight: true, axisYControlRadius: false
e._LogEnabled @ logger.ts:107
t._warning @ followCameraPointersInput.ts:207
t.onTouch @ followCameraPointersInput.ts:119
_pointerInput @ BaseCameraPointersInput.ts:195
e.notifyObservers @ observable.ts:393
e._processPointerMove @ scene.inputManager.ts:257
_onPointerMove @ scene.inputManager.ts:807
(anonymous) @ scene.inputManager.ts:1059
e.notifyObservers @ observable.ts:393
e._onInputChanged @ deviceSourceManager.ts:164
o @ internalDeviceSourceManager.ts:79
_pointerMoveEvent @ webDeviceInputSystem.ts:474
logger.ts:107 

BJS: It probably only makes sense to control ONE camera property with each pointer axis. Set 'warningEnable = false' if you are sure. Currently enabled: axisPinchControlRotation: false, axisPinchControlHeight: false, axisPinchControlRadius: true

This would be the correct way

But you need to upcast the pointers in FollowCameraPointersInput

1 Like