How can I use both spline and collision


I want to make a game like zuma, The ball runs along a spline, with a timeline to give a percent. In this way the ball can not have collision with each other,which looks very unreal…How to keep the ball on the spline track,and generate physical collision, and move in order, in a effective way?


In the node, Set Actor Location on the Spline, tick the Sweep checkbox to stop movement if the object collides. You will also have to pause the timeline (use the Blocking Hit out-pin on the Hit result of the sweep to tell whether this is needed) until the area in front of the ball becomes clear, which you can check for by doing a Trace in the direction of travel or the direction of the spline.