Basketball 3D - v.3.4.4 (with rebounds)
- Luca Moroni
Note Given complexity of the simulation it's highly advisable to download the .ggb file and run it through the Geogebra classic desktop program. The web/smarphone Geogebra apps can’t run it in a proper way. The worksheet Basketball 3D (v. 3.4.4) is a refinement of the previous material Basketball3D with the addition of rebounds against the backboard and the rim together with the ball bounces when hitting the floor. It also uses exact parabolic trajectories instead of some sort of numerical integration. Adding rebounds was not an easy task but greatly enhances the realism of the simulation. It also enrich the shooting practice with the possibility of rimshots and bankshots. The guide to the use of the worksheet and the meaning of the controls are at the end of this page, together with a demo video. Author's website: www.lucamoroni.it
Basketball 3D - v3.4.4
Trajectories in the Graphics3D window When the file is opened the first two parabolic trajectories are shown, calculated from the shot parameters. These will later become, in case of rebounds, the current and the next trajectories. Basic operations
Click “Shoot!” to start the animationSee the result and repeat the operation
With the same “Shoot!” button it’s possible not only to start the animation, but also to pause/resume it.
The animation speed can be controlled by the “Speed” slider. The reference value for this parameter is 1, that correspond, more or less, to a physically based real-time speed.
However, a smaller speed will increase the accuracy of the simulation, the correct detection of the rebounds and the correct recording of the result.
After the rebounds (when the ball ends up below the horizontal plane passing by the center of the ring) the shot result will be shown in the Graphics view 3D, with the following
possible outcomes: “Fail”, “OK – 3pts”, “OK – 2pts”.
The points scored in the single shot are also used to update the statistics of the session in the “Stats” table.
Other parameters and buttons
“dmpflo”: the amount of dumping or speed reduction of the ball after it hits the floor.
A value in the range 0.7-0.8 works fine.
“dmpbb” : the amount of dumping or speed reduction of the ball after it hits the floor.
A value in the range 0.7-0.8 works fine.
“dmprim”: the amount of dumping or speed reduction of the ball after it hits the rim.
Values in the range 0.5-0.6 are suggested.
“IC” (drop-down list): in case an interesting initial condition is found (i.e, one with nice rebounds) it’s possible to save its relevant parameters (position of the player, direction and speed of the shot) in one of three lists, to be retrieved later. This drop-down list allows to select the initial condition (IC1, IC2, IC3) on which to operate for saving in it the current configuration or for retrieving form it the parameters to substitute the ones of the current configuration.
“SaveIC” button: saves the current configuration in the list selected through the IC drop-down list.
“RestoreIC” button: load in the current configuration the configuration previously saved in the list selected through the IC drop-down list.
- Click “New Trial” to position the shooter (the shooter will be placed randomly on the half-field). The position of the player can also be changed by manually moving the A point.
- Through the sliders adjust the parameters “” (horizontal direction), “” (vertical inclination) and “v0” to direct the shot to the basket.
- The checkbox “ fine tuning”, if checked will change the maximum and minimum values of the slider will be closer to the correct horizontal direction, making it easier to fine tuning its value.
After a new placement of the player the shot parameters are automatically set in a semi-random manner: they are not the correct parameters to guarantee a successful shot but they are neither very far from the correct values.
Alternatively you can use the small buttons placed to the left of the sliders to automatically set the parameters:
- set : will set the right horizontal direction
- set : will set the right vertical slope of the shoot (given the actual value of v0)
- set v0: will set the right speed of the shot (given the actual value of ).
- The “hmax” (point) is the vertex of the initial parabola.
- A blue point on the backboard marks the point of impact of the ball with the backboard. In case of no impact with the backboard this point is smaller and lighter and take the meaning of the point of intersection between the ball initial trajectory and the plane of the backboard.
- There is a moving gray disk representing the ball projection (shadow) on the floor.
- In the 3D window there are buttons to quickly change the point of view.
- Many mistakes have been detected in the previous versions of this worksheet. Even if the actual version has been tested thoroughly, it can’t be excluded that some other (more elusive) error is still present in the calculation of the rebounds or in the setting of the score.
- In some circumstances the “t” slider , controlling the whole animation, may start being jerky and irregular. If this should happen, to restore a more smoother behavior of the animation it’s necessary to close the Geogebra program and re-open it.
- If the speed of the animation is too high rebounds and the result of the shot may not be properly calculated or visualized. It’s advisable to keep the speed value less than 0.8 or even less in case of shots from a great distance.