Editar

Compartir a través de


VolumeElasticSystem.ComputeIteration(Vector3, Single) Method

Definition

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

public:
 virtual UnityEngine::Vector3 ComputeIteration(UnityEngine::Vector3 forcingValue, float deltaTime);
public UnityEngine.Vector3 ComputeIteration (UnityEngine.Vector3 forcingValue, float deltaTime);
abstract member ComputeIteration : UnityEngine.Vector3 * single -> UnityEngine.Vector3
override this.ComputeIteration : UnityEngine.Vector3 * single -> UnityEngine.Vector3
Public Function ComputeIteration (forcingValue As Vector3, deltaTime As Single) As Vector3

Parameters

forcingValue
UnityEngine.Vector3

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.Vector3

The new value of the system.

Implements

Applies to