Hey
Is there a way to make a sprite move through a loop such that it passes in front of one half of the loop and behind the other? Imagine a 2D version of a basketball hoop where you are looking slightly downward at the hoop so you can see the back and front of the hoop. When the basketball is passing through the center, it would appear in front of the back part of the hoop but behind the front part of the hoop. At that instance, some of the ball should be rendered on top of the hoop, and some behind.
Is there any way to do this in 2D? For my game the hoop is actually vertical and the object passing through is moving from left to right across the screen. I tried rotating the sprite about the Y-axis, which tilts it like it should be. When I move the object through it in Scene View 3D mode, the ball appears to move through it, but when looking through the 2D camera, the ball is either completely behind it or complete in front, not passing through.
Any suggestions on how to accomplish this?
Thanks!