Click or drag to resize
Ab4d.SharpEngine logo

CameraControllerCameraRotationSmoothingDelegate Delegate

Represents a delegate that defines a custom smoothing function for camera rotation. It can be set by calling the SetAdvancedSmoothSettings method.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public delegate void CameraRotationSmoothingDelegate(
	float targetHeading,
	float targetAttitude,
	float elapsedTime,
	ref float newHeading,
	ref float newAttitude
)

Parameters

targetHeading  Single
The heading angle that would be used when no smoothing would be used.
targetAttitude  Single
The attitude angle that would be used when no smoothing would be used.
elapsedTime  Single
Elapsed time in seconds between this and previous call to this delegate.
newHeading  Single
The calculated new heading change after applying the smoothing function. This value is passed by ref and can be changed by the subscribed method.
newAttitude  Single
The calculated new attitude change after applying the smoothing function. This value is passed by ref and can be changed by the subscribed method.
See Also