- Home /
Dice getting stuck on invisble wall
Hi, I am completely new to unity, so I am sorry if there is an obvious and easy fix for this problem. I have created a dice app using this tutorial https://www.youtube.com/watch?v=4Ht2sHoxY1E But I have a few issues with it. The more important one is, that my dices sometimes get stuck between an invisible wall and another dice like in the picture:
How can I overcome this obstacle? Is there a way to make the walls "bouncy" or something?
Thanks!
Answer by ForeignGod · Aug 18, 2016 at 08:19 AM
Add a Physic material on the colliders.
There is a Bouncy preset, but you can configure your own.
Source: https://docs.unity3d.com/Manual/class-PhysicMaterial.html
I did that, and while it lowers the chance for the dice to get stuck, it does not eli$$anonymous$$ate it. The dice still get stuck sometimes.
Does the dice's have a Box Collider or $$anonymous$$esh Collider? If it is a $$anonymous$$esh C. then use the Box C.
Your answer
Follow this Question
Related Questions
Only sideways colliding detection 2 Answers
Stop object collision 3 Answers
Detecting collision on start in my building system 0 Answers
Pong question: paddles go through walls 0 Answers