Understanding collision detection
Game collision detection is a system to detect when two or more game objects overlap or interact with each other in a game world. The process of collision detection is based on mathematical calculations that check whether two shapes intersect with each other (overlap detection) or whether a line goes through a surface (ray casting detection).
To detect actor collisions, Unreal offers certain types of simple collision components that use simple shapes to deal with collision detections:
UCapsuleComponent
UBoxComponent
USphereComponent
Figure 8.1 – Simple shape collision components
Besides using the collision components, another option to add simple collision shapes to static meshes is to add them via the Mesh Editor. Double-click on any mesh (model) on the Content Drawer to open the Mesh Editor. You should find the Collision menu item in the Blueprint Editor menu or on the toolbar: