Click or drag to resize
Ab4d.SharpEngine logo

CameraZoomMode Enumeration

CameraZoomMode defines the possible zoom modes in CameraController. Each zoom mode specifies different location into which the camera is zoomed.

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public enum CameraZoomMode
Members
Member nameValueDescription
ViewCenter0 Zooms into the center of the SceneView
CameraRotationCenterPosition1 Zooms into the 3D position defined by the TargetPositionCamera.RotationCenterPosition or FreeCamera.RotationCenterPosition property. This mode can be used only with TargetPositionCamera or FreeCamera.
MousePosition2 Zooms into the 3D position that is "behind" current mouse position. If there is no 3D object behind mouse position, then camera is zoomed into the SceneView's center. This mode can be used only with TargetPositionCamera or FreeCamera. When this zoom mode is used, it changes the value of the TargetPositionCamera.RotationCenterPosition or FreeCamera.RotationCenterPosition property.
See Also