Brandon Withington | XR Software Engineer

Driving Range

A mutliplatform golf driving range game where players can hangout together, participate in games or just practice their drive!

Overview

This was a fun project that I wanted to make that would test my foundational knowledge of Unity based physics. With that base, I wanted to see if I could create a golf driving system that felt both good and fun to play and be in. I opted to have a more simplistic environment to help players load into the game world quicker and help overall performance. Initially, for calculating physics and hit timings, I was using the Unity collision system. This turned out to become a bit inaccurate when attempting to accurately gauge when the player will hit the ball, with how much force, and how far the ball should go in reaction to the player’s club head.

To solve this, I decided to run a custom sphere physics cast between the club head and the club’s assigned ball. With this, I was able to more accurately tell when the player hits the ball, and with how much force should be applied to the ball.


Brief Video Demonstration


Features

Technologies Used

My Role