Click or drag to resize
Ab4d.SharpEngine logo

CameraController Methods

The CameraController type exposes the following members.

Methods
 NameDescription
Protected methodCapturePointer protected virtual CapturePointer
Public methodChangeCameraDistance 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).
Public methodStatic memberCubicEaseOut Simple cubic easing function used to decelerate the rotation: y = (x - 1) * (x - 1) * (x - 1) + 1x
Protected methodEndCameraMovement protected EndCameraMovement
Protected methodEndCameraQuickZoom EndCameraQuickZoom
Protected methodEndCameraRotation protected EndCameraRotation
Protected methodEndPointerProcessing EndPointerProcessing is called when the pointer or mouse button that started rotation or movement is released.
Protected methodGetCameraMoveAdjustment protected virtual GetCameraMoveAdjustment
Protected methodGetCameraRotationCenterPosition protected GetCameraRotationCenterPosition
Protected methodGetRotationCenterPositionFromPointerPosition GetRotationCenterPositionFromPointerPosition methods returns a nullable Vector3 that is get by 3D hit testing of specified pointerPosition with the 3D objects. If no 3D object is hit and calculatePositionWhenNoObjectIsHit parameter is set to true, then the returned Vector3 is calculated by creating a ray from pointer position and advancing in the ray direction for the distance from camera's position and camera target position. The method is called when the RotateAroundPointerPosition property is true. The method can be overridden to provide custom logic to get rotation pivot point.
Protected methodIsCameraRotationCenterPositionSupported protected IsCameraRotationCenterPositionSupported
Public methodMoveCamera Moves the camera for the pointer change defined by pointerDx and pointerDy parameters.
Protected methodOnCameraMoveEnded Fires CameraMoveEnded event
Protected methodOnCameraMoveStarted Fires CameraMoveStarted event
Protected methodOnCameraQuickZoomEnded Fires CameraQuickZoomEnded event
Protected methodOnCameraQuickZoomStarted Fires CameraQuickZoomStarted event
Protected methodOnCameraRotateEnded Fires CameraRotateEnded event
Protected methodOnCameraRotateStarted Fires OnCameraRotateStarted event
Public methodStatic memberQuadraticEaseOut Simple quadratic easing function used to decelerate the rotation: y = -1 * x * x + 2 * x
Public methodQuickZoomCamera Quickly zooms the camera for the pointer change defined by startPointerPosition and currentPointerPosition parameters.
Protected methodReleasePointerCapture protected virtual ReleasePointerCapture
Protected methodResumeAnimationOrStartRotationEasing protected ResumeAnimationOrStartRotationEasing
Public methodRotateCamera RotateCamera method rotates the camera for the pointer change defined by pointerDx and pointerDy parameters. The method can be overridden in a derived class to provide custom camera rotation implementation.
Protected methodSetCameraDistance protected SetCameraDistance
Protected methodSetCameraPositionForPointerMove protected SetCameraPositionForPointerMove
Protected methodSetCameraRotationCenterPosition protected SetCameraRotationCenterPosition
Protected methodStartCameraMovement protected StartCameraMovement
Protected methodStartCameraQuickZoom StartCameraQuickZoom
Protected methodStartCameraRotation protected StartCameraRotation
Protected methodSubscribeSceneView Protected virtual SubscribeSceneView
Protected methodSuspendAnimationOrStopEasingRotation protected SuspendAnimationOrStopEasingRotation
Protected methodUnsubscribeSceneView Protected virtual UnsubscribeSceneView
Protected methodUpdateRotationCenterPosition protected UpdateRotationCenterPosition
Top
See Also