meshfx // COLLISION // UNREAL

How to add a collision mesh in Unreal Engine 5

In Unreal Engine 5 you add collision from the Static Mesh Editor's Collision menu, with simple boxes, spheres, capsules or Auto Convex Collision, or you import your own collision meshes named with a UCX_ prefix in the FBX. Then set Collision Complexity so physics uses those simple shapes instead of every triangle of the render mesh.

pyrofx effects work today, and new accounts start with $5 of usage.

MODULE // meshfx AVAILABLE

meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the Playground.

  • Collision menu: Auto Convex Collision
  • FBX prefixes: UCX_, UBX_, USP_, UCP_
  • Simple for physics, complex for traces

01 // IN THE EDITOR

Add simple collision in the Static Mesh Editor

  1. Open the static mesh and turn on Show > Simple Collision in the toolbar to see what it has now.
  2. From the Collision menu, add a Box, Sphere or Capsule Simplified Collision for simple shapes.
  3. For irregular shapes, choose Auto Convex Collision, set Hull Count and Max Hull Verts, and click Apply.
  4. Move or scale individual shapes in the viewport if they float off the surface.
  5. In Details > Collision, set Collision Complexity to Project Default or Simple And Complex, then save.

02 // UCX_ PREFIX

Import your own collision with UCX_ meshes

Model convex pieces that wrap the object in your 3D editor and name each one after the render mesh: for SM_Crate, use UCX_SM_Crate_00, UCX_SM_Crate_01 and so on. Each piece should have no dents, because Unreal wraps any concave piece in a convex hull. Export the pieces in the same FBX and Unreal attaches them as simple collision on import.

The UBX_, USP_ and UCP_ prefixes work the same way for boxes, spheres and capsules.

03 // SIMPLE AND COMPLEX

Simple and complex collision

Unreal keeps two kinds of collision. Simple collision is the boxes and hulls you added, used by physics and most movement. Complex collision is the render mesh itself, used for precise traces such as bullet hits.

Use Complex Collision As Simple makes physics test every triangle, which is exact and slow, and a mesh set that way cannot simulate physics. Keep it for static meshes that need exact contact. Characters use a Physics Asset of capsules and boxes on their bones instead.

04 // meshfx

meshfx for collision in unreal

meshfx measures faults, checks repairs and makes LODs. Build physics shapes in your engine or editor. Hosted meshfx runs are available in the Playground.

06 // FAQ

Unreal Engine collision questions

All questions →

README.COLLISION_MESH_UNREAL
How do I make a custom collision mesh in Unreal Engine?

Model convex pieces, name them UCX_ plus the render mesh name plus a number and export them in the same FBX. Unreal attaches them as simple collision.

Why is complex collision not working in Unreal Engine?

Check Collision Complexity in the static mesh Details panel and your trace channel. A mesh set to Use Simple Collision As Complex ignores its triangles for traces.

How do I view the collision mesh in Unreal Engine?

meshfx measures faults, checks repairs and makes LODs. Open the Static Mesh Editor in Unreal Engine to inspect simple and complex collision shapes.

How does skeletal mesh collision work in Unreal Engine?

Skeletal meshes collide through a Physics Asset made of capsules, boxes and spheres attached to bones. Open the Physics Asset from the mesh and adjust shapes.

Should I use simple shapes, convex hulls or a custom collision mesh in Unreal Engine?

Use boxes, spheres and capsules where they fit, Auto Convex Collision for irregular props and UCX_ pieces when automatic hulls close off a doorway or handle.

Explore meshfx outputs

Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.

All effects, guides and explainers →