BHS -> Staff -> Mr. Stanbrough ->IP How-To Notes -> this page
In Interactive PhysicsTM, you can create controls for:
To do so:
There are four types of controls: sliders, text boxes, buttons, and tables. You will probably use sliders the most, and tables are a little "beyond the scope of this class"...
|
|
You can adjust the slider by dragging the slider with the mouse, or clicking in the slider area. You can also type a value directly into the text box. This value does not have to coincide with one of the slider values, but it must be between the minimum and maximum values set for the slider.
Opening the Properties Window for the control allows you to change its type by selecting one of the four icons. You can also set the minimum and maximum value for the slider. (This value does not affect the text box.) The "number of snaps" constrols the resolution of the slider. In the example at right, the slider will take on 20 values from 0.010 to 1.000 (inclusive). Unchecking the "Show text" box will cause the slider's text box to disappear.
Of course, you can use the Appearance
Window to change the labels, colors, etc. of any control.
|
|
The button can be used when you want to toggle between two values, either min or max as contained in the Properties Window.
The table is a whole tale unto itself. Basically, what it allows you to do is have the control read values from a text file, such as a file saved from a spreadsheet or a data table. We won't be using it for our simple simulations.