- Home /
Question by
AhmadAli07 · Jan 16, 2016 at 04:27 PM ·
movementvrlookatfirst-person-controller4d
i am working in VR Oculus Rift. i want to move my first person controller towards the direction i am looking. if i am looking straight first person controller should be moving straight, if i am looking right it starts moving right.
Currently i am using transform.LookAt(target);
but for this i cant give it a random target ... i need help
Comment
Answer by toddisarockstar · Jan 16, 2016 at 09:23 PM
transform.Translate(Vector3.forward * Time.deltaTime);
Your answer
![](https://koobas.hobune.stream/wayback/20220612060158im_/https://answers.unity.com/themes/thub/images/avi.jpg)