Hello folks!
I have finished prototyping the shooting mechanism, complete with shot visualization and all kinds of different clubs you can use, from your trusty driver all the way to a lob wedge!
The shooting is being done using Unity’s physics system. It also takes the real loft values of each club and takes them into account when calculation the maximum shot distance (or expected) and the potential trajectory of the ball. You can see the differences below!
First off, a shot with a 2 Iron:
You can clearly see how low this shot is, and it allows you to drive the ball quite a distance down the fairway.
Next is a 9 iron:
This club will drive your ball further in the air, which will lead to reduced distances but the bounce can surely help you hit your spot more accurately. Next is the lob wedge:
This club goes really high up in the air, useful for traversing certain obstacles or getting that much needed lob. Accordingly, it is only able to send the ball down a very short distance.
So there you have it! On track for tomorrow’s demo featuring the shooting in your holes. The physics are still a bit wonky and the ball tends to roll much more than I’d like. But hey, it’s working!
Stay tuned for more!