Jaa


InteractionTracker.ScaleInertiaDecayRate Property

Definition

Inertia decay rate, for scale. Range is from 0 to 1.

The ScaleInertiaDecayRate property defines the rate at which InteractionTracker will slow to a stop when it has entered Inertia and scale is changing. The closer to 1, the faster InteractionTracker will slow to a stop and vice versa. Unlike the PositionInertiaDecayRate which is defined as a Vector3, ScaleInertiaDecayRate is defined as a single float.

public:
 property IReference<float> ^ ScaleInertiaDecayRate { IReference<float> ^ get(); void set(IReference<float> ^ value); };
IReference<float> ScaleInertiaDecayRate();

void ScaleInertiaDecayRate(IReference<float> value);
public System.Nullable<float> ScaleInertiaDecayRate { get; set; }
var iReference = interactionTracker.scaleInertiaDecayRate;
interactionTracker.scaleInertiaDecayRate = iReference;
Public Property ScaleInertiaDecayRate As Nullable(Of Single)

Property Value

Inertia decay rate for scale. Range is from 0 to 1.

Examples

void SetupInteractionTracker()
{
  // Setup InteractionTracker
  _tracker = InteractionTracker.Create(_compositor);

  // Set the ScaleInertiaDecayRate value
  _tracker.ScaleInertiaDecayRate = 0.95f;
}

Remarks

Below is a graph of the equation that models the ScaleInertiaDecayRate property. Note that as the value of the property approaches 1, the impact of inertia increases more significantly.

In the graph, time is on the X axis, and position from the start of the interaction is on the Y. Notice that with a much larger value (closer to 1), the position from start is much smaller and plateaus earlier.

Slopes of inertia values with decay rates of 0.9, 0.6, 0.4, and 0.2.

Applies to