CollisionGen Studio is coming soon. It is not on sale yet — this site is a preview.
CollisionGen
Contents

Getting started

Making collision

Testing and exporting

Reference

Generating collision

With an asset open, press Ctrl+G, or click Generate Collision in the toolbar or the Tools panel. The CollisionGen engine reads the model, works out which parts are floors, walls, stairs, roofs and openings, and fits a few simple shapes to them. A bar shows its progress; the button becomes Cancel Generation while it works. A detailed building takes from a few seconds to a couple of minutes.

Generation options

Set these in the Tools panel before you generate:

OptionWhat it does
Generate forWhat the model is. Building (the usual choice): collision for walking around inside it, as described on this page. Player character: one upright capsule, as tall as the character and as wide as its body (arms held out are left out), in the Player category: the collision a game gives its character. Prop: tight collision for the whole object, as Fitted hulls (convex hulls fitted to its parts: a table's top and legs), One hull around it all, or One box, upright. The choice is remembered for each asset (a new one starts as a building). Stairs, windows, real height and furniture apply to buildings only, and are greyed out for the others.
StairsRamp: each flight is one smooth ramp, which players glide up. Stepped: a box for every step. Auto: a ramp where a flight rises evenly, a box for every step where it does not.
WindowsSealed closes window openings into the wall; Open leaves them open. Doorways always stay open.
DetailHow closely collision follows a very dense mesh: Balanced works from 50,000 faces, High from 150,000, Full from every face (slow on big models).
Real heightThe model's real height in metres, for a model whose units are arbitrary. Tick the box beside it to use it. It is for one generation: it turns itself off once that generation is done, so a height meant for one model is never used for the next by mistake (ticking it again brings back the last height). Left off, it shows Auto and the engine trusts the file's units.
Collision for furniture and propsGives tables, crates and other clutter their own tight collision. It starts off every time the Studio opens. Off, they get none, and the floor under them stays solid either way.
Merge multi-part assetsTicked, a model made of separately placed pieces is treated as one asset, so its collision is made for the whole. Unticked, each piece gets its own collision (a set of crates, say, each with its own box). Each piece keeps its own material and placement either way. A player character is always taken whole.

Generating again

Generate as often as you like: by default each generation replaces all of the asset's collision — the shapes the engine made before and the ones you added or changed by hand — without asking. Ctrl+Z brings back what was there, in one step.

To keep what you made by hand instead, set Settings > General > Generate Collision replaces to Only generated collision: then only the shapes the engine made give way, the ones you added or changed stay, and a new shape that would sit where you changed one is left out. It applies to the generation queue too.

To redo one part only, select shapes around it and choose Edit > Regenerate Inside Selection (or Regenerate in the Details panel). The engine works on the whole model for context but replaces only the collision inside the selection's bounds. It uses the real height the collision was made with, unless you tick Real height for it, so the new shapes match their neighbours.

Several assets: the generation queue

The engine works on one asset at a time, but you can line up as many as you like and leave the computer to work through them:

  • In the Content Browser, select the assets (Ctrl-click or Shift-click), right-click one of them and choose Generate Collision for N Assets. Or right-click a single asset and choose Add to Generation Queue.
  • While the engine works on one asset, Generate Collision for the asset you have open becomes Add to Queue.

The assets are generated one after another, each with the generation options as they were when it was queued, and each is saved in the project as soon as it is done, replacing that asset's collision. You can go on working meanwhile, and open other assets. Real height goes with an asset only when you queue it on its own, because it is one model's height.

The Queue tab beside the Content Browser shows each asset: waiting, being generated (with its stage and progress), done (with how many shapes), or failed (and why).

  • Pause lets the asset being generated finish, then waits.
  • Cancel Current stops that asset and goes on with the next.
  • Right-click an asset in the list to move it up or down, remove it, or generate it again.

When the last one is done, the Studio's taskbar button flashes and the status bar says how it went, so you see it when you come back.

While the queue works, other engine tasks (exports, merges, fitting a shape) wait until it finishes; pause the queue to get to them sooner. Closing the Studio asks first while the queue has work, because the queue is not kept.

Starting over

Remove All Collision (under Generate Collision in the Tools panel, or Edit > Remove All Collision...) deletes every shape of the open asset, hidden ones too, after asking. Undo (Ctrl+Z) brings them all back. Tick Don't show this again in the question and it stops asking (System Settings turns the question back on).

What you get

For a player character, its capsule; for a prop, its fitted hulls, hull or box. For a building: boxes where it is boxy (walls, floors, slabs) and convex hulls only where a part is genuinely sloped, triangular or curved (gables, roofs, stair ramps), with a category on each. A raised platform (a stage, a dais, a blockout's raised floor) is one solid box even with furniture collision off: it is part of the level, not furniture. Walls open to the sky (an open-air level, a courtyard, ruins) get collision like any other. Frames, trim and small details get no collision: players should slide along a wall, not catch on its skirting board. The Output Log lists how many shapes of each kind were made.

Tip. After generating, switch the view to Collision Only or press X for X-Ray to see every shape, then walk the building with Alt+P.