- Home /
Locking gameobject to rotating floor
I'm trying to lock my player to the raycast hit, but only in one "local" direction. I essentially want my player locked to the ground, while still allowing it to move left and right locally. The ground rotates.
help.png
(28.6 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613022743im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How can i change a childs local position with a variable? 1 Answer
localposition not working? Calculating a vector in front of an object. Picture and code included 1 Answer
Move GameObject along a line according to the players look direction 3 Answers
Linerenderer doesn't match my ray. 1 Answer
Adding force relative to the distance from an object 1 Answer