When I play the game, it slips through the model

I imported a model of a large terrain in FBX. However, when I play the game, it slips through the model. I first set “use complex collision as simple”, but it doesn’t work, so I set I also set “auto convex collision” but it doesn’t work. Is there a good solution?




When you import a model it will not have collision by default, you have to create it.

I the Content Browser, find the Mesh for the model you imported. Double click it, it will open a new window., In the new window. At the top you will see a drop down menu “Collision”. Click it and find “Convert Boxes to Convex”. This will calculate the collision for that object.

If you have a really complex model, or a very large one like your landscape. You will probably want to (in the same pop up window for the mesh), on the right side, find “Convex Decomposition” and turn the hull count up to max (64), max hull verts (32) and turn up the hull precision to 300,000. then click Collision>Convert Boxes to Convex. Then Save that page and close it.

Now your imported 3d model will have a proper hit box and collision

If you want to be able to damage that 3d model, thats a whole 'nother tutorial

good luck!

1 Like

Thanks for the reply.
However, I tried entering the numbers as you suggested, but to no avail.

the numbers are just to set the amount of polygons, thats not the important step. the important part is that you add the collision from the drop down menu. if you dont do that you wont have any collision and youll fall through the model.
You should see these green lines on your model if done correctly. dont forget to save your changes

vlcsnap-2023-12-05-13h05m11s516

Thanks for the reply.
Of course I added the collision from the drop down menu after entering the numbers as you first suggested and saved it.
However, the player is buried as shown in the attached image.

ok i see the problem. your landscape you imported is just soo large there arent enough triangles produced for all of the contours of the landscape. you can tell from the green lines. try maxing out the Hull Precision from 300,000 all the way up, then regenerate collision and see if that helps.

if that doesnt fix it, you may have to cut the landscape into smaller pieces, then redo the collision. What i would try is to use the Modeling mode and the Plane Cut Tool with the setting checked for “keep both sides”. cut the landscape in half, then cut those two pieces in half so your landscape is 4 pieces. then redo the collision and see if there are enough polygons to accurately trace the contours of the landscape. if not, you may have to cut them down into even smaller grids.

the smaller you make the grids (more times you cut the pieces in half), the more accurate the collision will trace the landscape. if the landscape you import is like thousands of meters big you may have to cut it into many smaller pieces to get the amount of precision you want so you dont clip though the landscape

1 Like

Thanks for the reply.
I increased the Hull Precision from 300,000 to the maximum and regenerated the collision, but it did not work.
Next, I did what you suggested and divided the landscape into 4 parts, and I felt that the player was a little less buried.
I then divided one of the landscapes into 4 parts, and I felt that this solved the problem of burying the player.

1 Like

perfect. glad you got it sorted out! remember you can always cut them into small and smaller pieces for more precision if you need to. good luck with your project

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.