QuaternionElasticSystem.ComputeIteration(Quaternion, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Update the internal state of the damped harmonic oscillator, given the forcing/desired value, returning the new value.
public:
virtual UnityEngine::Quaternion ComputeIteration(UnityEngine::Quaternion forcingValue, float deltaTime);
public UnityEngine.Quaternion ComputeIteration (UnityEngine.Quaternion forcingValue, float deltaTime);
abstract member ComputeIteration : UnityEngine.Quaternion * single -> UnityEngine.Quaternion
override this.ComputeIteration : UnityEngine.Quaternion * single -> UnityEngine.Quaternion
Public Function ComputeIteration (forcingValue As Quaternion, deltaTime As Single) As Quaternion
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
The new value of the system.