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

ProgressCurve Class

ProgressCurve provides a helper for creating curves for easing.
Oculus::Interaction::ProgressCurve extends Oculus.Interaction.ITimeConsumer.

Overview

Properties

AnimationCurve
float
Func< float >

Public Member Functions

void
SetTimeProvider
( Func< float > timeProvider )
Sets a function that returns the current time in seconds.
ProgressCurve
( AnimationCurve animationCurve,
float animationLength )
void
Copy
( ProgressCurve other )
void
Start ( )
float
float
ProgressIn
( float time )
float
void
End ( )

Details

Detailed Description

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.

Properties

AnimationCurve Oculus.Interaction.ProgressCurve.AnimationCurve
No description available.
float Oculus.Interaction.ProgressCurve.AnimationLength
No description available.
Func<float> Oculus.Interaction.ProgressCurve.TimeProvider
No description available.

Member Functions

void Oculus.Interaction.ProgressCurve.SetTimeProvider
( Func< float > timeProvider )
Sets a function that returns the current time in seconds.
Oculus.Interaction.ProgressCurve.ProgressCurve ( )
No description available.
Oculus.Interaction.ProgressCurve.ProgressCurve
( AnimationCurve animationCurve,
float animationLength )
No description available.
Oculus.Interaction.ProgressCurve.ProgressCurve
( ProgressCurve other )
No description available.
void Oculus.Interaction.ProgressCurve.Copy
( ProgressCurve other )
No description available.
void Oculus.Interaction.ProgressCurve.Start ( )
No description available.
float Oculus.Interaction.ProgressCurve.Progress ( )
No description available.
float Oculus.Interaction.ProgressCurve.ProgressIn
( float time )
No description available.
float Oculus.Interaction.ProgressCurve.ProgressTime ( )
No description available.
void Oculus.Interaction.ProgressCurve.End ( )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon