I am a bit new to unity and I am trying to create the snake game in AR. I used an image target to place the game level/map which is a simple plane with a mesh collider. And I placed my snake model on the plane and attached Rigidbody components to each node of the snake. When I keep the gravity enabled, for some reason the snake falls through the plane and when I remove 'Use Gravity' option in the Rigidbody component for each node, things tend to work out fine but after some time when the plane gets slightly angled, the snake keeps moving on the same angle as the plane was when the image target was detected and the scene was initiatialized. Is there a way I can make my snake stick to the plane whatever the angle my plane gets tilted. Or else is there an option to prevent the plane from tilting around after the initial image target detection and intialization?
I am using Unity 2020.3.17f1 and vuforia sdk 9.8.11