I have an uneven surface with a mesh collider on it. I have a disc which i want to move in xz direction. disc has a cylinder mesh on it. I am using ray-casting to move it. But as surface is uneven , Some part of disc goes below the surface . Anyone have idea about this. I have got stuck in this problem . I want the disc to move all disc above the surface(i.e behave like a cloth placed on surface). Anyone has an idea about it? Thanks in advance.
Unity 2019 LTS
Perhaps you have to sample the position of the mesh at a few extra points to make sure no part of the disk will go below the surface? Or how about putting a rigidbody on the disk and let the gravity work on it?
1 Like
I guess rigidbody will not give the desired result as it will settle according to contact point but i want my disc to be deformed according to surface as in attachment. Can you suggest me for this?