Download

Custom collision not detected by line trace?

Hello,

I created a prop for my game with a custom collision box around it in max like so: 3057bacc283a3a09502f1f53a1b8af08a0c11d4a.jpeg I made sure to call the box UBX_{rendername} and in while importing I disabled “auto generate collision”.

When I open the asset in unreal it looks like this: Yiai3GG.jpg So clearly the collision mesh did import correctly and I enabled cusomized collision (not sure if I need this?)

Then I created a blueprint using this mesh and set my collision presets like I did with my other assets (which are just cube placeholders): 85deac3736c980c237cf49884f196fb6837f4b3e.png

Now when debugging it does not stop the trace when using “get hit result under cursor by channel” but when I set the collision to the “BlockAll” preset my character does walk against the custom collision mesh like it’s a invisible wall (like it should be).

Am I doing something wrong? Or is this an engine “bug”?

Thanks in advance!

PS: Running UE 4.10.4

Still having this issue. Anyone?

Does it block the trace when you set it to Block All, if so, why don 't you use block all?

It does not block the trace on block all but it does block my character from walking against it, now the thing is my character is a very small invisible sphere with a camera attached to it which makes sure that my camera is always the same height from the terrain. There’s probably better ways to do this but it works just the way I want it to.

There’s no reason it shouldn’t work, if you replace the mesh in your BP, with another mesh, does the trace work on that?

It works with the standard cube mesh, because the trace BP works. It’s a get pos under mouse trace, I don’t know if that changes anything.