Share via


Physics Engine Constants (Compact 2013)

3/28/2014

The physics engine API uses the following constants.

Name

Value

Description

PHYSICSENGINE_BOUNDARY_MODE_NONE

0

Indicates that no special animation occurs when the gesture animation reaches the boundary.

PHYSICSENGINE_BOUNDARY_MODE_RUBBERBAND

1

Indicates that a rubber band animation occurs when the gesture animation reaches the boundary.

PHYSICSENGINE_BOUNDARY_MODE_BOUNCE

2

Indicates that a bounce animation occurs when the gesture animation reaches the boundary.

PHYSICSENGINE_MOVEMENT_MODE_DECELERATE

0

Indicates that the animation speed slows down over time.

PHYSICSENGINE_FLAG_USERTIME

1

Indicates that the engine time is specified by the user.

Remarks

You use these constants to populate a PHYSICSENGINEINIT structure to configure a physics engine.

Requirements

Header

physicsengine.h,
winuser.h

sysgen

SYSGEN_PHYSICSENGINE

See Also

Reference

Touch Gestures Physics Engine Reference