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
Post a Comment