Finished implementing the basic version of the stroke maker!
It now allows you to curve your shots in sort of the way you want it. To illustrate the process, I created a simple tiled hole so that you can better see the path created by the ball before and after the shot.
Below, you can see a top before/after view of hitting the ball off the tee:
On the left side, it’s the straight predicted trajectory of the ball (currently not taking into account the spin on the display!), and on the right is the result of the stroke. As per the stroke maker, you can see I went full on right-spin on it. You shouldn’t do that unless you really want it the spin. In this case, it deviated only slightly to the left.
Here, the ensuing shot, a chip in from a distance:
Again, full on spinning. It resulted in a nice curve cutting inside towards the center of the field. Just for displaying purposes, of course.
Finally, my attempt at putting with a curve because why not?
All of that was on flat ground, to make sure the curving calibration wasn’t affected by any other effects. Dang close from the hole too, if I had aimed just a tad more to the left, it would have gone in. But oh well, live and learn!
This doesn’t conclude the UI implementation yet; I still need to hook up the end state of the goal/retire option to it, as well as add more info regarding the stroke you’re taking, plus information on the hole and how far along you are. After, I’ll make some more icons for the terrain editing part, ensure everything is navigable, and that you can cancel your actions.
Then I’ll move on to AI, hopefully!
That’s all for now folks!