Editar

Partilhar via


IElasticSystem<T>.ComputeIteration(T, Single) Method

Definition

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

public:
 T ComputeIteration(T forcingValue, float deltaTime);
public T ComputeIteration (T forcingValue, float deltaTime);
abstract member ComputeIteration : 'T * single -> 'T
Public Function ComputeIteration (forcingValue As T, deltaTime As Single) As T

Parameters

forcingValue
T

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.

deltaTime
Single

Amount of time that has passed since the last update.

Returns

T

The new value of the system.

Applies to