We spent an afternoon designing and constructing a simple golf course using planes of different materials. Calculating the positions of the planes so that there would be no gaps was surprisingly time-consuming. It was done through repeated simple trigonometric equations. The resulting golf course can be seen in the video below (to be added). Note that we also added the skybox from lab 2 into the scene.
Additionally, we fixed a problem with the ball intersecting with the plane. It was an issue concerning the order of updating positions and calculating velocities. Now the ball is able to rest on a surface instead of sinking into it repeatedly.
Inga kommentarer:
Skicka en kommentar