Share via


PHYSICSENGINESTATE (Windows Embedded CE 6.0)

1/6/2010

This structure describes the state of the physics engine at the current engine time. You can populate this structure by calling QueryPhysicsEngine.

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. 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 whether the animation is complete.

Remarks

If cbSize is not set to sizeof(PHYSICSENGINESTATE), QueryPhysicsEngine returns E_INVALIDARG.

Requirements

Header physicsengine.h, pwinuser.h
sysgen SYSGEN_PHYSICSENGINE

See Also

Reference

QueryPhysicsEngine

Other Resources

Physics Engine Structures
Physics Engine Reference