Suggestions for push fit pipe that allows up to 4 deg bend at each joint?

Any ideas on how to mate these up?

I had though of having one coincident mate at an end point of each part and then use collision detection to restrict the pipe from rotating any more than 4 deg. I'd imagine though that this may not be managable unless due to perfomance problems associated with this.

SolidworksRouting