QuaternionElasticSystem.ComputeIteration(Quaternion, Single) Method

Definition

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

C++
public:
 virtual UnityEngine::Quaternion ComputeIteration(UnityEngine::Quaternion forcingValue, float deltaTime);

Parameters

forcingValue
UnityEngine.Quaternion

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

UnityEngine.Quaternion

The new value of the system.

Implements

Applies to

منتج الإصدارات
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0