How to make trigger box work for dynamic objects?

When trying to stop animated objects through trigger box.It is not working

What exactly are you trying to do? To block actors from passing through?

,I had used spline for linear movement…but trigger box is not working for it .I had kept collision also.But objects are passingover it.can u please suggest any solution.

Make sure that:

  1. the collision component of your “moving object” is the root component
  2. bSweep is check in “setactorlocationandrotation” or “setactorrotation”.
  3. the trigger box is set to “block all”

For example, in this example, the moving object has a simple static mesh component, as it’s set as the root component: