On this page |
The collision system in Unreal Engine refers to the detection of a physical interaction between objects in the level.
Houdini Engine for Unreal can generate collision from many types and sources:
-
complex collisions
-
convex collisions
-
simple collisions
-
from LODs
-
from custom geometry.
To create collision, assign your geometry to the Group SOP node and use the proper attribute prefix as the group name.
See Setup collision for an asset for different methods to create collisions in Houdini.
If you use your original static mesh to generate a collision, you must use the rendered (visible) prefix attributes for both the collision and your static mesh to appear in Unreal Engine.
If you create a custom collision, you can use the without rendered (invisble) prefixes.
Complex collision ¶
This is the default collision behavior for Houdini Engine.
Complex collisions generates colliders using the exact model of your static mesh. This results in an accurate collision but is more expensive than simple or convex collisions if your static mesh has high triangle count.
Complex collisions can be useful for objects that have irregular or complex shapes such as rocks, trees, or characters.
Note
Complex collisions DO NOT work for physical simulations.
Convex collision ¶
Convex collisions are simplified geometries made from a set of convex polygons. These can be generated as simple colliders in Unreal. You can use convex collisions for both collision and phyiscal simulation.
Simplified collision geometries help optimize collision detection in-game.
Simple collision ¶
A simple collision is a basic shapes such as a box, sphere, capsule or K-DOP. You can use simple collisions for both collision and phyiscal simulation.
See Unreal’s K-DOP Documentation for more information.
Simple collisions can be useful for simple objects such as walls, floors, or basic shapes.
Collision from multiple geometries ¶
This method generates collision from multiple geometries on a single asset.
This can be useful if you have areas like a doorframe or fence that a player can walk through without colliding with a single collision.
For multiple geometries, make sure the name group has a sequential suffix after the collision attributes.
For example, the first collision is collision_geo_simple_1
and second is collision_geo_simple_2
.
Warning
DO NOT use the rendered_collision_geo
attribute for your custom collision. This results in Unreal generating a collision based on your original asset and not your custom collision.
Level of detail (LOD) collisions ¶
If your HDA has multiple LODs, you can use one of the LOD levels for your collision. LOD collisions uses complex collisions.
See Level of Details to setup your mesh for LODs.
Use unreal_uproperty_LODForCollision
as a detail attribute and set its value to the LOD level you want for your collision.
See Setup collision for an asset to create a collision from an LOD.
Groups ¶
Some special group names have naming schemes which specify generation behavior when marshalling data from Houdini to Unreal.
Collisions ¶
Complex collision ¶
Group name |
Description |
---|---|
|
Creates a complex collision (invisible) |
|
Creates a complex collision (visible) |
Warning
DO NOT use the rendered_collision_geo
attribute for your custom collision. This results in Unreal generating a collision based on your original asset and not your custom collision.
Convex collision ¶
Group name |
Description |
---|---|
|
Creates a convex hull collision (invisble) |
|
Creates a convex hull collision (visible) |
Simple collision ¶
Group name |
Description |
---|---|
|
Creates a default simple collision (invisible) |
|
Creates a default simple collision (visible) |
|
Creates a simple box collision (invisible) |
|
Creates a simple box collision (visible) |
|
Creates a simple sphere collision (invisible) |
|
Creates a simple sphere collision (visible) |
|
Creates a simple capsule collision (invisible) |
|
Creates a simple capsule collision (visible) |
|
Creates a simple 10DOP-X collision (invisible) |
|
Creates a simple 10DOP-X collision (visible) |
|
Creates a simple 10DOP-Y collision (invisible) |
|
Creates a simple 10DOP-Y collision (visible) |
|
Creates a simple 10DOP-Z collision (invisible) |
|
Creates a simple 10DOP-Z collision (visible) |
|
Creates a simple 18DOP collision (invisible) |
|
Creates a simple 18DOP collision (visible) |
|
Creates a simple 26DOP collision (invisible) |
|
Creates a simple 26DOP collision (visible) |