- Home /
Moving object to according where camera is looking
I have a player and a camera. The camera can rotate freely.
What I want is to move player forward where camera is looking, not forward in world axes.
How can I do that? Thanks
Comment
Answer by Myth · Mar 06, 2011 at 10:08 PM
if the camera is on a pivot, just make sure the player object is a child of, or is that pivot.
However, doing this will not allow rotation around the player object without further work.
Hope this helps!
Your answer
![](https://koobas.hobune.stream/wayback/20220613111628im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Camera not moving on mobile 0 Answers
button click to move camera to another position 2 Answers
Changing camera position to shoot through scope on gun 1 Answer
Moving an object in camera direction? 1 Answer
Camera.main.position gives BCE0019 2 Answers