Download

Collision generation with unsatisfying results

Hi,

I have a simple mesh that should be fairly simple to get accurate collisions with the unreal tool. The mesh is created with a voxel editor and imported as .fbx to unreal, so all geometry is more or less primitive shapes.

This is my results:

Any suggestions?

make it yourself.
collision is supposed to be authored in a DCC and only if you dont care about collision or in a hurry you should let UE generate it for you or use the collision generation tools inside ue

Thanks for replying. What do you meen by making them myself (Im fairly new to asset creation).
Making them in a 3D tool like blender?
Or placing out collision volumes into the scene?

Create the collision hulls in your 3D app alongside your mesh.

You’re not showing the important screen shot, which is the “collision view” in the static mesh editor.

There are two modes of collision: “simplified” and “detailed.” The “simplified” mode assumes the object is “smallish,” e g, somewhere between soda can to car in size. You can give it a box, or some number of convex hulls, as its shape. The benefit of this collision mode is that it’s generally efficient/fast, and it can generate good physical response (including realistic mass distribution) when the object moves in the world.

The other mode is “detailed,” which uses per-triangle collisions. This can be a lot more expensive if you have a lot of triangles and they each are small, but it does make the collision match up to what’s visible on the screen. This is ideal for things like ray-casting to figure out where to place a decal.

In the collision setup for a static mesh object, you can check a box that says something like “treat detailed as simple,” which means that the physics engine will use the exact triangles, even for physical simulation. As long as your object isn’t simulated on its own (e g, it’s static ground/walls, not spinning around in the world) then this can still be efficient enough for what you need to do.

So, long story short: try “treat complex as simple” for collision and see how it goes. Keep an eye out for performance problems.

There’s a couple of ways to make custom collision. One way is in-editor, double click on the static mesh and you’ll find collision tools up top.

The other is in your modelling application (in your case blender). In that method you create a custom collision following the engine’s guidelines and export/import it together as a single FBX.

More info on that is available here: FBX Static Mesh Pipeline | Unreal Engine Documentation