Class QuaternionElasticSystem
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Experimental.Physics
Assembly: cs.temp.dll.dll
Syntax
public class QuaternionElasticSystem : IElasticSystem<Quaternion>
Constructors
QuaternionElasticSystem(Quaternion, Quaternion, QuaternionElasticExtent, ElasticProperties)
Default constructor; initializes the elastic system with the specified initial value, velocity, extent, and elastic properties.
Declaration
public QuaternionElasticSystem(Quaternion initialValue, Quaternion initialVelocity, QuaternionElasticExtent extentInfo, ElasticProperties elasticProperties)
Parameters
| Type | Name | Description |
|---|---|---|
| Quaternion | initialValue | |
| Quaternion | initialVelocity | |
| QuaternionElasticExtent | extentInfo | |
| ElasticProperties | elasticProperties |
Methods
ComputeIteration(Quaternion, Single)
Update the internal state of the damped harmonic oscillator, given the forcing/desired value, returning the new value.
Declaration
public Quaternion ComputeIteration(Quaternion forcingValue, float deltaTime)
Parameters
| Type | Name | Description |
|---|---|---|
| Quaternion | forcingValue | |
| Single | deltaTime | Amount of time that has passed since the last update. |
Returns
| Type | Description |
|---|---|
| Quaternion | The new value of the system. |
GetCurrentValue()
Query the elastic system for the current instantaneous value
Declaration
public Quaternion GetCurrentValue()
Returns
| Type | Description |
|---|---|
| Quaternion | Current value of the elastic system |
GetCurrentVelocity()
Query the elastic system for the current instantaneous velocity
Declaration
public Quaternion GetCurrentVelocity()
Returns
| Type | Description |
|---|---|
| Quaternion | Current value of the elastic system |