Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
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
cbSizeis not set to
sizeof(PHYSICSENGINESTATE)
,
TKQueryPhysicsEngine
will return E_INVALIDARG.
Requirements
Header | GesturePhysicsEngine.h |