Sphere Trace Not Returning Hit

Tisreece
Sun, 07 Jul 2019 00:40:12 +0000
World Creation

Hi guys,

So I’m having issues with some physics and collision in general and I have probably gone about my workaround completely wrong, but either way maybe you can help me out with that too.
Bit of background on what I am trying to do, I have a projectile that I want to act like a boomerang, curves around and then eventually back to the approximate location it came from. Naturally, simulate physics is turned off for this kind of behaviour. I initially also had a projectile movement component, but getting the correct velocity just didn’t seem to work so I switched it up and did it all manually via set actor location each frame.

Because of this I am unable to get hit results if it hits a wall, therefore I have it looking for overlap events instead. Overlap events however, do not give me a impact normal to work with, so if overlap happens, I do a sphere trace with a pretty hefty search radius as smaller radii were producing very unreliable results. That being said, if the projectile come in at an odd angle, or gets stuck in a corner, the sphere trace produces no hit result, going straight through the object. As well as this, objects that have been scaled up never produce a hit result, such as the large rocks.

Is there any way to fix this?
Or is there a better way of achieving what I am going for?

Thanks

I have attached a few images to show what is happening.

7 posts - 1 participant