Share via


PHYSICSENGINESTATE

4/8/2010

This structure describes the state of the physics engine at the current engine time. This structure is populated by calling** TKQueryPhysicsEngine.

Syntax

typedef struct tagPHYSICSENGINESTATE {
    DWORD cbSize; 
    DWORD dwTime;
    POINT ptPosition;
    LONG lVelocityX;
    LONG lVelocityY;
    BOOL fComplete;
} PHYSICSENGINESTATE;

Members

  • cbSize
    Specifies the size of the PHYSICSENGINESTATE structure in bytes. You must set this value to sizeof(PHYSICSENGINESTATE).
  • dwTime
    Specifies the current engine time in milliseconds.
  • ptPosition
    Specifies the current animation position in pixels.
  • lVelocityX
    Specifies the velocity along the X-axis in pixels per second.
  • lVelocityY
    Specifies the velocity along the Y-axis in pixels per second.
  • fComplete
    Specifies if the animation is complete.

Remarks

If cbSize is not set to sizeof(PHYSICSENGINESTATE),** **TKQueryPhysicsEngine **will return E_INVALIDARG.

Requirements

Header GesturePhysicsEngine.h

See Also

Reference

TKQueryPhysicsEngine

Other Resources

Physics Engine Structures