[Plugin] Object Pool Component

Hi, got a weird thing happening while tracing for pooled pawns…

Im using a sphere trace to deal damage to all pawns within the sphere. Sometimes weirdly enough damage is dealt to targets outside the trace, they can be very far away from it.
I have tried to add GUID to each pooled pawn and sent it as a parameter, still same issue. I have also tried a interface to send damage info directly to the hit pawn but somehow some of the pawns seems to share the information.

Is this something you have encountered before and how to solve it?

EDIT: Seems like its an collision issue, somehow even if the sphere is not touching the pooled pawn it does have it within its hit info so it doesnt seem to be an pooling issue. I first thought it might have to do with memory issues due to pooling the pawns but seems like its an engine issue.

Seems like the culprit is the new orthographic camera, incase anyone else has the issue. A simple distance check solves my issue. Cant trust the hit information of the sphere collision.

1 Like