Quickstart: your first collision in five minutes

You will give a mug proper collision: an open cup and a handle you can pass a rod through. The same steps work for any Static Mesh.

The Collider Painter editor: toolbar with Add Hull, Paint, Select, Brush, Fit, Fit All, Auto, Bake, QA and Preview; the viewport with a mug whose cup and handle are separate hulls; the Hull List and Details panels on the right; the stats bar along the bottom.
The result: two hulls, Hull_01 for the cup and Hull_02 for the handle, each decomposed on its own.

Before you start

  • The plugin is installed and enabled (Installation).
  • You have a Static Mesh to work on. Any mesh will do; a mug with a handle shows the point best.

1. Open the editor

In the Content Browser, right-click the Static Mesh and choose Edit Collision in Collider Painter. (In the Static Mesh Editor, the Collider Painter toolbar button does the same.) The editor opens with the viewport, the Hull List, Details and a stats bar.

2. Add a hull and paint the cup

  1. Press Add Hull (Shift+N). Hull_01 appears in the Hull List with its own colour.
  2. Turn on Paint (B).
  3. Hold Ctrl and click the cup. The flood selects the whole smooth part, inside and out, and stops at the handle.

3. Decompose the cup

  1. In the Hull List, set the hull’s Type to Auto Decompose. (For a simple part, choose Box, Sphere, Capsule, Cylinder or Convex and press Fit, X, instead.)
  2. Press Auto (Y). The decomposition runs in the background with progress; the editor stays usable.
  3. When it finishes, the viewport previews the convex elements and the stats bar shows the element count, the cost, the backend and the solve time.

The Preset in Details sets the quality: Draft is fastest, Balanced is the default, Precise is the closest fit. See Fitting and decomposition.

4. Add a second hull for the handle

  1. Press Add Hull again. Hull_02 becomes the active hull.
  2. Paint along the handle in one drag. If paint spills onto the cup, hold Shift and brush it away.
  3. Set its Type to Auto Decompose and press Auto.

Because the handle is decomposed on its own, its loop stays open.

5. Bake and save

  1. If the mesh already has collision you want gone (an imported or auto-generated convex around everything), tick Replace All Collision under Bake in Details. Otherwise leave it off: a normal bake keeps collision that Collider Painter did not make.
  2. Press Bake (Ctrl+Shift+B). A notification reports how many elements were baked and reminds you to save.
  3. Save the Static Mesh.

6. Check it

  1. Press QA (Ctrl+Shift+Q). The status line reports the sampled Hausdorff and Chamfer distances, overlap pairs and walkable samples.
  2. Press Alt+Shift+3 for the distance heatmap: white where collision hugs the surface, red where it sticks out, blue where it falls short.
  3. Place the mesh in a level and test it in Play.
In Play, a ball has dropped into the mug and a rod has passed through the handle.
In Play: the ball drops into the cup and the rod passes through the handle.

Next steps

Applies to Collider Painter 1.0.0. Report a problem with this page.

Esc

Type to search the documentation.

↑ ↓ moveEnter openEsc close