I’m a newbie in threejs. I have created a sample of the issue so that the issue can be clearly visible.
In this sample, if you drag the stage horizontally, you’ll see that the cube is rotating and so the capsules. But the red capsule is always on top. When the red capsule is smaller than the yellow one that means the red capsule is behind the yellow one. But still the red one is on the top. May be I’m doing some silly stuff here.
Thanks to Marquizzo. Click here to see the code.