What's new

How to create collision for use in Unreal

  • Thread starter VinnyHaw
  • Start date
  • Views 4,184
VinnyHaw

VinnyHaw

Se7enSinner
Mythical Veteran Trifecta End of the Year 2015
Messages
14,055
Reaction score
5,501
Points
2,755
Sin$
7
Want to know how to give proper collision to your mesh in Unreal 4? Then this tutorial is for you. I'll walk you through the simple steps of creating collision.

Software I'll be using:
1 - Modo (for modeling)
Note: This will work regardless of what modeling package you use. Be it 3ds max or maya.
2 - Unreal 4

First I'll run you through the steps of importing mesh into Unreal that will most likely not work in regards to collision.

Step 1:
We'll be using a basic torus.
ra2fk9X.png


Step 2:
Export your mesh in .fbx format
NDkjKVd.png


Step 3:
In Unreal we will keep "Auto Generate Collision" on
N6uGmxz.png


Step 4:
Notice how I can't jump into the center of the torus
mXNVhwp.png


Step 5:
If you double click the static mesh in the content browser you'll open the a new window. The purple box is the collision (note if you don't see the purple box then you need to hit the "Collision" button on top. Now the reason the collision did not work is because this torus has a concave structure. Now we'll go back into our modeling package to fix this.
6NuR8Wv.jpg


Step 6:
We will be using boxes to outline where we want our collision to be. I applied a transparent red material to the box so that we can see the mesh underneath.
NOTICE: THIS IS IMPORTANT
See the name of it. It's named "UCX_Torus_01". UCX is a custom collision namespace that Unreal uses for collision. There is also UBX and USX, but UCX is a catch all that we'll utilize.
The name "Torus" is named after the original mesh. THIS IS EXTREMELY IMPORTANT.
The _01 is in regards to the number that the collision is. In the next step you'll see what I mean.
W1VL7FH.png


Step 7:
So each collision box ABSOLUTELY MUST be in its' own layer. So let's go over what we have.
A. Original mesh named Torus
B. First collision box named UCX_Torus_01
C. Second collision box named after the original mesh
Last Letter (not counting). Final collision box named after original mesh.
z6SMM31.png


Step 8:
Select every layer and export as .fbx
pFHhI0X.png


Step 9:
When importing into Unreal 4 turn off the auto generate collision option
4IJnLFi.png


10:
Notice that we can stand in the middle of the torus now
Also notice the collision box is updated with the boxes we made earlier
Q0LXC9L.jpg



Here's an example for the collision I created for the front of a building:

UX5RDrW.png



CF Boxman CF Boxman
 
Last edited:
CF Boxman

CF Boxman

Enthusiast
Messages
83
Reaction score
9
Points
55
Sin$
7
Hmm so your using basic boxes in your modeling program but naming them UCX? Or is that a custom box that your program uses?
 
VinnyHaw

VinnyHaw

Se7enSinner
Mythical Veteran Trifecta End of the Year 2015
Messages
14,055
Reaction score
5,501
Points
2,755
Sin$
7
Hmm so your using basic boxes in your modeling program but naming them UCX? Or is that a custom box that your program uses?

UCX is the custom collision namespace that Unreal uses. So you'll do the same as I did in Maya.

Updated the OP with another picture at the bottom.
 
CF Boxman

CF Boxman

Enthusiast
Messages
83
Reaction score
9
Points
55
Sin$
7
UCX is the custom collision namespace that Unreal uses. So you'll do the same as I did in Maya.

Updated the OP with another picture at the bottom.
Ah cool well thanks for the help man, been trying for atleast a year to figure this out. Will help majorly during Game Expo's that my college goes to every year lol
 
VinnyHaw

VinnyHaw

Se7enSinner
Mythical Veteran Trifecta End of the Year 2015
Messages
14,055
Reaction score
5,501
Points
2,755
Sin$
7
Ah cool well thanks for the help man, been trying for atleast a year to figure this out. Will help majorly during Game Expo's that my college goes to every year lol

NP m8. I'm full of that knowledge stuff.
 
CF Boxman

CF Boxman

Enthusiast
Messages
83
Reaction score
9
Points
55
Sin$
7
xkLfwrG.png

Bad garage i quickly made just to test but dude thank you so much lol
 
Top Bottom
Login
Register