Tuesday, 8 February 2011

My golf game looks a bit better now

It does look a bit nicer, I've added a skydome so that it's not the boring "Cornflower blue" anymore. I've added trees, it's one model, with a random scaling. The trees are planted automatically upon loading the level, the positions are "randomized", where the terrain is "earth" and not on the grass. I've also changed the texture of the fairway.

On the physics side, I've changed the flight of the ball... well it has more to do with the "hitting" of the golf ball by the club. Before it was just "launching" the ball at the angle of the club, but now I take into consideration the angle of the club, the mass of the club head and the mass of the ball, to launch the ball, but also apply the right amount of spin depending on the angle of the club when it hits the ball. I've also added some physics when the ball is rolling.

I will now modify the UI and refactor some of the code under it.

Here's how the game looks like now. Comments are welcome :)

1 comment:

  1. These hats are very simple statement, is really nothing more than a slip elastic wear a hat on his head. Keep posting such a great things with us.

    Golf Hats

    ReplyDelete