|
MouseCameraControllerChangeCameraDistance Method |
ChangeCameraDistance method change the distance of the TargetCamera by multiplying it by the changeFactor.
When RotationCenterPosition is set in the TargetPositionCamera or FreeCamera, then we zoom into the specified RotationCenterPosition (if this is not disabled by setting the zoomToRotationCenterPosition parameters to false).
Namespace: Ab3d.ControlsAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public void ChangeCameraDistance(
double changeFactor,
bool zoomToRotationCenterPosition = true
)
Parameters
- changeFactor Double
- changeFactor that is multiplied by the current TargetCamera Distance
- zoomToRotationCenterPosition Boolean (Optional)
- when true (by default) and the RotationCenterPosition is set in the TargetPositionCamera or FreeCamera, then we zoom into the specified RotationCenterPosition
Remarks ChangeCameraDistance method change the distance of the TargetCamera by multiplying it by the changeFactor.
If the type of target camera is OrthographicCamera, than instead of changing the distance the CameraWidth is changed.
See Also