Patent attributes
A method, system, and computer program product for moving objects such as a display window about a display frame by combining classical mechanics of motion. A window nudging method commences by receiving a discrete user interface gesture from a human interface device such as a mouse click or a keystroke, and based the discrete user interface gesture, instantaneously accelerating the window object to an initial velocity. Once the window is in motion, then the method applies a first animation to animate the window object using realistic motion changes. Such realistic motion changes comprise a friction model that combines sliding friction with fluid friction to determine frame-by-frame changes in velocity. The friction model that combines sliding friction with fluid friction can be applied to any object in the display frame. Collisions between one object and another object or between one object and its environment are modeled using a critically-damped spring model.