Topic locked

3D objects floating on the 3D plane

January 2, 2022 - 7:19am #1

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

3D objects floating on the 3D plane

January 4, 2022 - 7:16am #2

Hey,

 

Better to share a video so we're able to easier understand what you're trying to do. I suggest not using a RigidBody component if you want to have the snake to be sticking to the image target. 

 

Kind regards,

Patrick Scheper

Technical Community Manager

Topic locked