日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    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

    Back to top Generated by DocFX