I am using the default ball roll template and i want to simply make it so the ball cannot leave the track i created, for the life of me i can’t seem to get it to work … i created a sphere trace and grabbed the location of an arrow sitting just infront of the ball assuming i could update the constrain movement to the z axis constantly (which worked but get a jaggered effect jarring back and forth most the time) so obviously am approaching this the wrong way some how … ty for any help
Two ways I can think of, first way is simple if your track is flat. In your ball blueprint, click on your mesh component (or any component with physics), then in the details panel under physics there is a drop down menu called “Constraints” there you can lock the position or rotation by X, Y, and / or Z.
Second method would be to do a trace from the ball to the floor and add an high impulse to the ball in the opposite direction of the hit on every tick.
Hope this helps!