I’d say no; unless you actually want physically simulated door that swings naturally, or can be interacted with in a physical way / with forces or impulses. The answer depends on how you want the door to behave.
I tried using
On Component Hit
andOn Component Begin Overlap
but that is not really a viable option.
Why not? This works and specifically accounts for sweeps:
You may have a reasons, ofc. Just asking why you think it’s not viable.
I guess I could parent an invisible box to the moving object (the door) and use that to check for collision. But I really hope a better way exists. This is unnecessarily too process intensive.
It’s a pretty common solution in certain scenarios. That’s precisely what colliders are for. Begin / End overlap are sweep independent, too. Perhaps you have a Nicely Detailed Mesh for a Big Spiky Trap, but only the spikes are deadly, the rest of the trap is safe to fiddle with. As a bonus this event will trigger once rather than spam every frame like the DoOnce-gated Hit event above…
One note:
- rotations & Sweep is a no-no. Maybe in UE5… @mindfane ?