First |
public void MoveFor( Vector3 cameraPositionOffset, int animationDurationInMilliseconds, Func<float, float>? easingFunction = null )
MoveFor animates the CameraPosition by changing it for the specified cameraPositionOffset. The animation takes animationDurationInMilliseconds and uses the specified easingFunction.
This methods stops any existing animation or rotation that is currently running (except those that are running on CameraAnimation defined by the user; not in this camera).
easingFunction parameter can be set to any Func that takes a float value and returns another float values (both in range from 0 to 1). It is possible to use a predefined list of easing functions that are defined in Ab4d.SharpEngine.Common.EasingFunctions). When easingFunction parameter is null then linear interpolation is used.