Assignment 4 - Go Cart Collision
Introduction:
In order for 3D objects to have interaction between one another, collision detection is used to detect the action and reaction for these objects. For this assignment, it is required that we use a Go Kart to demonstrate the use of the collision detection algorithms.
A simple Go Kart to demonstrate the collison detection.
Use of collision detection:
For this assignment, the sphere and polygon collision detection algorithm is used. The algorithm has to first check if the sphere (assigned to the Go Kart) intersects a polygon's plane. If it does, a further check is done to see if the point of intersection lies within the polygon itself.
As shown in the picture above, the Go Kart is unable to move after encountering the walls of the petrol station.
Controls:
Numpad 8 | Move Go Kart Forward |
Numpad 2 | Move Go Kart Backward |
Numpad 4 | Steer Left |
Numpad 6 | Steer Right |
v | Toggle Go Kart View |