I have created a semi-sphere in the Modeling mode with any collision. I want to do a line trace from inside the semi-sphere and get the Impact point but the line doesn’t hit anything. I think the problem is, of course, with the semi-sphere, I have to set something to be hit by the line trace, or use another line trace node.
This is the semi-sphere. The player will always be inside:
Hello @ViaCognita ,
If the semi-sphere has no collision, then the Line Trace will not be able to detect it, since traces work against collision and not against the visual geometry of a mesh. That’s why it’s normal that you’re not getting any hit result.
My question is: are you trying to create some kind of dome or enclosed area where the player has to find a specific point to exit or interact with something?
If you could share a more specific example of what you’re trying to achieve, it would be easier to understand the problem and suggest a better solution.
I also have another question: when you’re inside the semi-sphere, should you be able to see its inner walls?
If you can provide more specific details about what you’re trying to achieve, that would also be helpful.
sadly this is engine limitation how geometry is created, i did find this workaround but you use 2 line traces
shoot line from player out and then shoot another one bat toward player so you get hit from outside, hope this give you some starting point to experiment on more perf solution
You can try the following:
First, open the Static Mesh and generate a collision. In this example, I used Add 26DOP Simplified Collision, but you can choose whichever one best fits your project’s needs. Then, in Collision Presets, set Pawn and Camera to Ignore so that you can enter the dome.
In case you need another value, such as Impact Normal, I’ll leave the official documentation below, which explains what each of the values returned by the Break Hit Result node is used for.