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 function returns the state of the physics engine. If the engine mode is default mode, the engine state is based on the current time indicated by the system clock. If the engine mode is PHYSICSENGINE_FLAG_USERTIME then the engine state is based on the time specified in the most recent call to TKSetPhysicsEngineUserTime.

Syntax

HRESULT TKQueryPhysicsEngine(
	HPHYSICSENGINE 
hEngine,
   __out PHYSICSENGINESTATE* 
pState
);

Parameters

hEngine

[in] A handle to a physics engine object.

pState

[out] A pointer to a PHYSICSENGINESTATEstructure that indicates the state of the physics engine.

Return Value

The return value can contain the following values. It may also return other values and should be tested using the SUCCEEDED and FAILED macros.

S_OK

Indicates that the physics engine state is successfully returned.

E_INVALIDARG

Indicates that a parameter is invalid.

E_UNEXPECTED

Indicates that the physics engine object is not initialized.

Requirements

Header GesturePhysicsEngine.h

See Also

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.