 |
CameraControllerSetAdvancedSmoothSettings(Boolean, Boolean, Boolean, NullableSingle, CameraControllerCameraRotationSmoothingDelegate, CameraControllerCameraMovementSmoothingDelegate, CameraControllerCameraZoomSmoothingDelegate) Method |
SetAdvancedSmoothSettings can be called instead of changing the
CameraSmoothing property
to configures advanced settings for camera smoothing, allowing fine-grained adjustments of rotation, movement, and zoom smoothing modes.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic void SetAdvancedSmoothSettings(
bool isSmoothRotationEnabled,
bool isSmoothMovementEnabled,
bool isSmoothZoomEnabled,
float? customSmoothFactor = null,
CameraControllerCameraRotationSmoothingDelegate? customRotationSmoothingFunction = null,
CameraControllerCameraMovementSmoothingDelegate? customMovementSmoothingFunction = null,
CameraControllerCameraZoomSmoothingDelegate? customZoomSmoothingFunction = null
)
Parameters
- isSmoothRotationEnabled Boolean
- Indicates whether rotation smoothing is enabled.
- isSmoothMovementEnabled Boolean
- Indicates whether movement smoothing is enabled.
- isSmoothZoomEnabled Boolean
- Indicates whether zoom smoothing is enabled.
- customSmoothFactor NullableSingle (Optional)
- Optional parameter to specify a custom smoothing factor (bigger factor produces faster smoothing). Currently, 22 is used for Fast, 16 for Normal, and 9 for Slow. If not provided and smoothFactor was not set by the CameraSmoothing parameter, then 16 is used. Note that the actual usage of this value can change in the future versions.
- customRotationSmoothingFunction CameraControllerCameraRotationSmoothingDelegate (Optional)
- Optional CameraRotationSmoothingDelegate that can be used to provide custom rotation smoothing.
- customMovementSmoothingFunction CameraControllerCameraMovementSmoothingDelegate (Optional)
- Optional CameraMovementSmoothingDelegate that can be used to provide custom movement smoothing.
- customZoomSmoothingFunction CameraControllerCameraZoomSmoothingDelegate (Optional)
- Optional CameraZoomSmoothingDelegate that can be used to provide custom zoom smoothing.
See Also