I’m trying to create some “Poker Cards” in my scene,then I come across two questions.The html page can be visited on this github site.
The first question is:
Some card at the bottom is shown on the top!I guess that’s because when I move the camera, the square A at the bottom get closer to the camera than the
upper square 2,Then the engine think 2 is deeper than A.
Is my guess correct?And how can I deal with this question？
The second question is:
When I place the cards with PhysicsImpostor one on one,I hope they can stable strut each other,but they just blow up.I attempted reduce the PhysicsImpostor’s restitution property(even to 0),but it doesn’t work at all.Do you have any idea to make the card quiet down when struted?In addition,in my tests,the cards always collapse to the left ,is there a reason for this phenomenon?