次の方法で共有


PHYSICSENGINESTATE (Compact 2013)

3/28/2014

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,
winuser.h

sysgen

SYSGEN_PHYSICSENGINE

See Also

Reference

Physics Engine Structures
QueryPhysicsEngine
Touch Gestures Physics Engine Reference