Wiki source code of Ball Physics
Version 4.1 by stu104225 on 2020/03/04 16:26
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | \\ | ||
| 2 | |||
| 3 | == Task == | ||
| 4 | |||
| 5 | The ball physics model is meant to do things ... | ||
| 6 | |||
| 7 | == Ball trajectory == | ||
| 8 | |||
| 9 | The trajectory of a ball can be modeled to be parabolic. | ||
| 10 | |||
| 11 | == Configuration == | ||
| 12 | |||
| 13 | === Points of interest === | ||
| 14 | |||
| 15 | The model of the area, where the the flippers can hit a ball is computed from a set of five points. These points are set to real world coordinates in meter | ||
| 16 | |||
| 17 | and should not need further adjustment after the camera is correctly calibrated (see [[doc:World Coordinate System]]). | ||
| 18 | |||
| 19 | [[image:attach:physics_points.png]] | ||
| 20 | |||
| 21 | |=((( | ||
| 22 | Point# | ||
| 23 | )))|=((( | ||
| 24 | Description | ||
| 25 | ))) | ||
| 26 | |((( | ||
| 27 | 1 | ||
| 28 | )))|((( | ||
| 29 | center point of the circle that the flippers tip moves o | ||
| 30 | ))) | ||
| 31 | |((( | ||
| 32 | 2 | ||
| 33 | )))|((( | ||
| 34 | highest point a ball can be at when it hits the resting flipper | ||
| 35 | ))) | ||
| 36 | |((( | ||
| 37 | 3 | ||
| 38 | )))|((( | ||
| 39 | lowest point a ball can be at when it hits the resting flipper | ||
| 40 | ))) | ||
| 41 | |((( | ||
| 42 | 4 | ||
| 43 | )))|((( | ||
| 44 | lowest point a ball can be at when it hits the fully triggered flipper | ||
| 45 | ))) | ||
| 46 | |((( | ||
| 47 | 5 | ||
| 48 | )))|((( | ||
| 49 | highest point a ball can be at when it hits the fully triggered flipper | ||
| 50 | ))) | ||
| 51 | |||
| 52 | \\ | ||
| 53 | |||
| 54 | === Flipper range === | ||
| 55 | |||
| 56 | From the aforementioned points | ||
| 57 | |||
| 58 | \\ | ||
| 59 | |||
| 60 | \\ | ||
| 61 | |||
| 62 | \\ | ||
| 63 | |||
| 64 | [[image:attach:physics2.png]] | ||
| 65 | |||
| 66 | \\ | ||
| 67 | |||
| 68 | === Inlane Area === | ||
| 69 | |||
| 70 | \\ | ||
| 71 | |||
| 72 | [[image:attach:physics_inlane.png]] | ||
| 73 | |||
| 74 | \\ | ||
| 75 | |||
| 76 | === Prediction parameters === | ||
| 77 | |||
| 78 | \\ | ||
| 79 | |||
| 80 | \\ | ||
| 81 | |||
| 82 | \\ | ||
| 83 | |||
| 84 | \\ | ||
| 85 | |||
| 86 | \\ | ||
| 87 | |||
| 88 | \\ | ||
| 89 | |||
| 90 | \\ | ||
| 91 | |||
| 92 | \\ | ||
| 93 | |||
| 94 | \\ | ||
| 95 | |||
| 96 | \\ | ||
| 97 | |||
| 98 | \\ |