API reference
API reference
Select your platform
No SDKs available
No versions available

ProgressCurve Class

ProgressCurve provides a helper for creating curves for easing.
In some respects it works like an AnimationCurve except that ProgressCurve always takes in a normalized AnimationCurve and a second parameter defines the length of the animation.
A few helper methods are provided to track progress through the animation.

Constructors

ProgressCurve ()
Signature
Oculus.Interaction.ProgressCurve.ProgressCurve()
ProgressCurve ( animationCurve , animationLength )
Signature
Oculus.Interaction.ProgressCurve.ProgressCurve(AnimationCurve animationCurve, float animationLength)
Parameters
animationCurve: AnimationCurve
animationLength: float
ProgressCurve ( other )
Signature
Oculus.Interaction.ProgressCurve.ProgressCurve(ProgressCurve other)
Parameters

Properties

AnimationCurve : AnimationCurve
[Get][Set]
Signature
AnimationCurve Oculus.Interaction.ProgressCurve.AnimationCurve
AnimationLength : float
[Get][Set]
Signature
float Oculus.Interaction.ProgressCurve.AnimationLength
TimeProvider : Func< float >
[Get][Set]
Signature
Func<float> Oculus.Interaction.ProgressCurve.TimeProvider

Methods

Copy ( other )
Signature
void Oculus.Interaction.ProgressCurve.Copy(ProgressCurve other)
Parameters
Returns
void
End ()
Signature
void Oculus.Interaction.ProgressCurve.End()
Returns
void
Progress ()
Signature
float Oculus.Interaction.ProgressCurve.Progress()
Returns
float
ProgressIn ( time )
Signature
float Oculus.Interaction.ProgressCurve.ProgressIn(float time)
Parameters
time: float
Returns
float
ProgressTime ()
Signature
float Oculus.Interaction.ProgressCurve.ProgressTime()
Returns
float
SetTimeProvider ( timeProvider )
Sets a function that returns the current time in seconds.
Signature
void Oculus.Interaction.ProgressCurve.SetTimeProvider(Func< float > timeProvider)
Parameters
timeProvider: Func< float >
Returns
void
Start ()
Signature
void Oculus.Interaction.ProgressCurve.Start()
Returns
void