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