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

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

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