- Unreal Engine 4 Game Development Essentials
- Satheesh PV
- 293字
- 2021-07-16 13:07:51
Creating collision meshes
You can create collision meshes and export them with your asset. Unreal Engine 4 provides a collision generator for static meshes but there are times when we have to create our own custom collision shapes especially if the mesh has an opening (such as doors or walls with window cutouts). In this section, we will see both options.
Tip
Collision shapes should always stay simple because it is much faster to calculate simple shapes.
Custom collision shapes
Collision meshes are identified by Unreal importer based on their names. There are three types of collision shapes that you can define. They are as follows:
- UBX_MeshName: UBX stands for Unreal Box and as the name says, it should be in a box shape. You cannot move the vertices in any way or else it will not work.
- USP_MeshName: USP stands for Unreal Sphere and as the name says, it should be in the sphere shape. The number of segments of this sphere does not matter (although somewhere around 6-10 seems to be good) but you cannot move any vertices around.
- UCX_MeshName: UCX stands for Unreal Convex and as the name says, it should be a convex shape and should not be hollow or dented. This is the most commonly used collision shape because basic shapes such as boxes and spheres can be generated right inside Unreal.
In the following screenshot, you can see the red wireframe object, which is what I created for the collision shape:

Unreal Engine 4 collision generator
Collision shapes for static meshes can be generated inside the static mesh editor. To open this editor, double-click on a static mesh asset in Content Browser and click on the Collision menu, which will then list all the options for Collision.

- Learning LibGDX Game Development(Second Edition)
- C程序設計簡明教程(第二版)
- Hyper-V 2016 Best Practices
- Java加密與解密的藝術
- HTML5+CSS3+JavaScript Web開發案例教程(在線實訓版)
- 用Python實現深度學習框架
- Linux Device Drivers Development
- Python Web數據分析可視化:基于Django框架的開發實戰
- Frank Kane's Taming Big Data with Apache Spark and Python
- Hands-On Kubernetes on Windows
- Building Dynamics CRM 2015 Dashboards with Power BI
- Applied Deep Learning with Python
- 和孩子一起學編程:用Scratch玩Minecraft我的世界
- Python全棧開發:數據分析
- GO語言編程從入門到實踐