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.