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

IDeltaTimeConsumer Interface

A general interface for replacing the delta time provider used in an object.
Grouping classes that use this pattern under this interface allows changing multiple objects easily. See Oculus.Interaction.Locomotion.FirstPersonLocomotor for an example implementation.

Methods

SetDeltaTimeProvider ( deltaTimeProvider )
Sets a custom function that returns the last delta time in seconds.
Signature
void Oculus.Interaction.IDeltaTimeConsumer.SetDeltaTimeProvider(Func< float > deltaTimeProvider)
Parameters
deltaTimeProvider: Func< float >  A delegate that returns the time elapsed since the last frame.
Returns
void