The Hell It Don't Curve

CPE 471 Final Project
Neal Terrell



Table of Contents

Overview
Features List
Program Use
Toolbar Operation
Tips and Tricks

 

Program Overview

"The Hell It Don't Curve" is a graphical simulator of the path a pitched baseball travels on its way from a pitcher's mound towards homeplate in a live baseball game. The program demonstrates the effects of velocity, spin, and direction on the trajectory of a flying ball. The user may provide values for these parameters, and can see the results in a variety of views.

 

Features List

  1. Realistic modeling of baseball flight using an advanced physics calculation.
  2. Text boxes and other GUI elements available to manually specify values for each flight parameter.
  3. A real-time animation of the flight of the ball, seen from a variety of perspectives. These include behind home plate, the pitcher's mound, above the infield, third-base, and directly behind the ball following its path.
  4. Option to slow down the simulation to 1/2, 1/4, and 1/8-realtime speeds.
  5. For each pitch, a determination if the pitch was a strike or ball, with an on-screen strike zone for manual inspection.
  6. A "tracking" mode, where the path of the ball is calculated and displayed as a curve from the release point to where the ball lands.
  7. A pre-calculated list of standard pitches to automatically select appropriate input values for a variety of pitches. These pitches include a fastball, curveball, slider, split-fingered fastball (also called a "forkball"), and screwball.

 

Program Use

Launch the application by double-clicking BaseballApp.exe. You will be presented with a screen layout similar to the image at the beginning of this manual. The application consists of two windows, the viewing window and the input toolbar:


Viewing Window

Input Toolbar

The visual simulation of baseball pitches is shown in the viewing window. The input toolbar is used to specify values for each parameter of a pitch (explained later). Use the toolbar to select one of the pre-generated pitches from the Example Pitches combo box. Doing so will fill in the text boxes in the toolbar with values reflecting the selected pitch. For example, selecting Curveball from the Example Pitches will produce the following values:


Selecting a curveball

When you are satisfied with the pitching parameters you have selected, hit the Pitch! button towards the bottom of the toolbar. Watch the viewing window closely as the baseball travels from the pitcher's mound to home plate! When the baseball reaches home plate (or hits the ground), it will stop in place. To return the baseball to the pitcher's mound, hit the Reset button (note: hitting Pitch! again will first reset the ball). Additionally, the toolbar will tell whether the pitch was a ball or strike:


Pitch was a strike!

A major league fastball takes approximately 0.45 seconds to from release time to reach home plate, so you may want to slow down the simulation to see the ball's travel path more clearly. To do so, select a value from the Speed combo box. Selecting a value other than Real-time will slow the simulation by the constant selected. When you hit Pitch! from now on, the ball will travel much slower and be easier to see. Too bad major league hitters don't have that option!

The Camera Position combo box can be used to move the camera to several interesting angles to witness the travel of the ball. By default, the camera is set to Follow mode, in which the camera moves along with the ball from behind. Examples of each view follow:


Home Plate

Pitcher's Mound

Aerial

Side

Follow

Finally, press the Track button to see a colored curve showing the path the ball takes. The curve changes color from magenta to cyan as it progresses from the pitcher's mound to home plate. The tracking path can be viewed from any of the camera positions:


Tracking a curveball from the side

 

Toolbar Operation

The following pitch parameters can be tweaked using the input toolbar:

Overview of example pitches:

If you close the toolbar and wish to see it again, go to the Tools menu and select Show Toolbar.

 

Tips and Tricks