| CurveInterpolaterInterpolateCurveDistance Method (AnimationCurve, Vector3, Vector3, Single, Single) |
Retrieve the interpolated Vector3 value between a start and end point at a certain time by passing in the distance instead of the end point
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static Vector3 InterpolateCurveDistance(
this AnimationCurve animationCurve,
Vector3 start,
Vector3 distance,
float elapsedTime,
float duration
)
Parameters
- animationCurve
- Type: AnimationCurve
The curve to use to find the value - start
- Type: Vector3
The value before any interpolation - distance
- Type: Vector3
The distance from the start point to end this interpolation - elapsedTime
- Type: SystemSingle
The amount of time that has passed since the interpolation began - duration
- Type: SystemSingle
The total amount of time for this interpolation
Return Value
Type:
Vector3The value at the point on the curve at the time passed in
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
AnimationCurve. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also