Collision shapes components attached to spring arm don't trigger overlap events, unles character moves.

As said, I have parented shape component to spring arm, so that it would trigger overlap components as I move camera in third person. But when I move camera around, the shape doesn’t trigger overlap events unless I move my character at least slightly. So when my character is standing still and I look around, the shape attached could technicly overlap other actor, but the overlap event won’t trigger unless my character move a bit.

Is there any reason that this happens?

I wanted to use this method for level optimization, unloading scene actors when they stop overlaping my camera’s field of view.

As far as I know that’s expected: overlaps are refreshed when the actor moves, and a component that only moves because the spring arm rotated doesn’t get that refresh until the character moves again. Two ways around it: on a short timer (0.1 s) run Box Overlap Actors or Sphere Overlap Actors at the camera, which query fresh every time, or skip overlaps and compare each actor’s direction with the camera’s forward vector.

For the goal itself I’d measure first. Unreal already skips rendering what is outside the view, and unloading by view direction causes hitches when the player turns around. Distance based streaming (World Partition) is usually the safer route.

1 Like

(post deleted by author)

Well, good to know now. I kinda expected it to be a janky solution when implemented like that.

1 Like