Radial collision handling
The ConceptAs mentioned, this system allows you to handle collisions with objects which can be enclosed by bounding cylinders. These cylinders can be defined by two numbers, or rather, a vector and a float - one containing a location, and the other containing a radius. Let's imagine we have a simple scenario with a triangle of trees placed on a simple flat plane:
- If the camera has entered a tree's bounding cylinder, register a collision.
- Calculate a new location for the camera which puts it back outside the bounding cylinder.