- Home /
How to move a throwable just on the floor
Hi, I am new to unity and work on my first project. I am looking for a method to grab an object and move it only horizontally. In my case, it is a kind of ladder on wheels which the VR player can grab and move on the floor, like when you push or pull it in reality. So I added the throwable script to my game object, and I just want to lock the position on the y-axis and the rotation on the x- and z-axis. I tried the constraints of the rigidbody function, but this does not work (I can move the game object in all dimensions, but when I release the object, it stays flying). I made a quite long search in google, here and also youtube, but unfortunately I did not find something helpful. Maybe somebody here can help me, this would be very kind. Thanks.
Your answer
![](https://koobas.hobune.stream/wayback/20220612233531im_/https://answers.unity.com/themes/thub/images/avi.jpg)