Click or drag to resize
AB4D logo

CameraControlPanelChangeCameraDistance Method

ChangeCameraDistance method change the distance of the TargetCamera by multiplying it by the changeFactor

Namespace: Ab3d.Controls
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public virtual void ChangeCameraDistance(
	double changeFactor
)

Parameters

changeFactor  Double
changeFactor that is multiplied by the current TargetCamera Distance
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