In this chapter, we'll be looking at further interactions and dive into three of the most crucial elements of game development, namely:
- Collision Detection—detecting interactions between objects by detecting when their colliders collide with one another
- Trigger Collision Detection—detecting when colliders set to trigger mode have other colliders within their boundary
- Ray Casting—drawing a line (or vector) in the 3D world from one point to another, in order to detect potential collisions without two colliders colliding or intersecting
In order to learn about these three topics, we will introduce an outpost model to our island, and learn how to write code for interactions by making the outpost's door open when the player character ...