We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Interface IElasticSystem<T>

    Represents a damped harmonic oscillator over an N-dimensional vector space, specified by generic type T.

    This extensibility allows not just for 1, 2, and 3-D springs, but allows for 4-dimensional quaternion springs.

    Namespace: Microsoft.MixedReality.Toolkit.Experimental.Physics
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IElasticSystem<T>
    Type Parameters
    Name Description
    T

    Methods

    ComputeIteration(T, Single)

    Update the internal state of the damped harmonic oscillator, given the forcing/desired value, returning the new value.

    Declaration
    T ComputeIteration(T forcingValue, float deltaTime)
    Parameters
    Type Name Description
    T forcingValue

    Forcing function, for example, a desired manipulation position. See https://en.wikipedia.org/wiki/Forcing_function_(differential_equations). It is a non-time-dependent input function to a differential equation; in our situation, it is the "input position" to the spring.

    Single deltaTime

    Amount of time that has passed since the last update.

    Returns
    Type Description
    T

    The new value of the system.

    GetCurrentValue()

    Query the elastic system for the current instantaneous value

    Declaration
    T GetCurrentValue()
    Returns
    Type Description
    T

    Current value of the elastic system

    GetCurrentVelocity()

    Query the elastic system for the current instantaneous velocity

    Declaration
    T GetCurrentVelocity()
    Returns
    Type Description
    T

    Current value of the elastic system

    In This Article
    Back to top Generated by DocFX