Download

SphereTrace fro Objects not getting hit on Pawn? Don't know why

I’m doing a Sphere Trace for Objects and the objects are Pawns. I have a character pawn that clearly should be getting a hit within the radius of the trace but there is no hit. Anyone know some potential reasons a character pawn AI would not get a hit? Some setting I’m missing? etc…

You can set the Draw Debug Type parameter to For Duration and check if the trace is hitting something else before your AI character. If that looks fine and the trace is passing through the character, then just make sure that the root collision component on your character is set to Pawn.

Also make sure the start and end locations are different (even by just one unit) to workaround a known bug.

I added one to the vector of the trace and it WORKED! Thanks a lot