This question was
closed Aug 30, 2016 at 02:05 PM by
Landern for the following reason:
Duplicate of http://answers.unity3d.com/questions/1236515/google-vr-how-do-i-use-cameramaintransformforward-1.html
Question by
ShedHead · Aug 29, 2016 at 10:27 PM ·
camera.main
(Google VR) How do I use Camera.main.transform.forward in Unity JavaScript (not C#)
How do I use "Camera.main.transform.forward" in Unity JavaScript??
I've been trying for days to change a "FPS Camera Script" (in JavaScript) so that the player moves in the direction the Main Camera is facing. No luck yet. Any help would be greatly appreciated! Thanks
Comment
Your answer
Follow this Question
Related Questions
NullReferenceException to Camera.main.transform.position 0 Answers
ScreenToWorldPoint causing OnPointerEnter/Exit to fire multiple times 3 Answers
Physics.Raycast returns odd results when collider is not visible to camera 0 Answers
2D shooting script fixed camera 2 Answers
How can i play Animation clip using Animator on other camera then Main Camera ? 1 Answer