I have partially constrained a body such that it could only rotate in Z-axis. Now, the body doesn't stop when it hits other body rather it passes through. How could i control this motion? The maximum angle it could possibly rotate is like 60° untill it hits the edge of other component, but it rotates complete 360°. Is it possible to prescribe motion between two edges?