unity3d - Changing a character's forward direction based on camera -


in unity i'm attempting change character's forward direction based on looking. if 45 degrees down , go forward, go towards facing.

if don't mind character's game object turning, need set character's rotation same camera's rotation.

if mind, can either trigonometry , calculate movement vectors, or move camera first, (in same frame) move player camera's location.

there's many ways done, depends on want.


Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -