Line Trace inside a sphere

I’m trying to do Line Trace For Objects inside a sphere. This sphere is a Static Mesh Actor with this collisions:

The sphere in the level is a semi-sphere or dome:

To do the line trace I’m doing this:

This is how I get the start and end location:

This code works fine when the pawn is outside the sphere, but when the pawn goes inside the sphere and do the line trace, the Out Hit Location is the actor’s location.

Is there a way to do a line trace inside a sphere?

Thanks.

You will need to flip normals, you can do it in the modelling mode:

Or outside the UE editor, too.

1 Like

@Everynone Thanks, but I get the same result. It doesn’t work.

You will need to Trace Complex since we’re not interested in Simple Collision anymore.

1 Like

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