top of page

As part of the Physics Simulation module, I had to create a golf game in C++ using PhysX that realistically simulated real-world physics and material interaction. We were told it had to be a one hole course, that could identify how many swings you took and when you got the ball in the hole. It also had to have some form of activatable transformation that used materials.


I made a course with a windmill to add some strategy, allowing a tricky shortcut if you can aim well and time your swing correctly with the right power to get a hole-in-one. The creation of different mechanics like the golf club being able to rotate around the ball's position and be moved to it's current position involved changing the fixed point in space the joint of the club was attached. I had to use Sine and Cosine to make the club be placed in an exact circle around the ball. Lots of testing, tinkering and research into material properties was done to try and ensure realism for everything in the game and how it reacted. I think it was successful as a simulation of golf physics, and as a short fun game and I learned a lot about the formulas used and how in low level programming you can construct any shape using vectors, allowing for complex shapes like the tunnel used for the windmill and the hole.

CONTACT ME

Christopher Cromb

Games Computing graduate​

University of Lincoln

​
Email:

christophercromb@btinternet.com

​

  • Black LinkedIn Icon

Thanks for submitting!

bottom of page