IInertiaProcessor::get_InitialVelocityX method (manipulations.h)

The InitialVelocityX property specifies the initial movement of the target object on the horizontal axis.

This property is read/write.

Syntax

HRESULT get_InitialVelocityX(
  FLOAT *x
);

Parameters

x

Return value

None

Remarks

If Inertia processing has already started, setting InitialVelocityX will reset the inertia engine to the initial state with new velocity values applied.

Call this function to set the initial state of inertia. You would call this function most likely during the ManipulationCompleted event of the IManipulationProcessor or in the constructor of the IInertiaProcessor interface.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header manipulations.h (include Manipulations.h)

See also

GetVelocityX

Handling Inertia in Unmanaged Code

IInertiaProcessor

Inertia Mechanics

InitialVelocityY

Properties