Question by
agusval1994 · Nov 06, 2020 at 04:16 PM ·
unity 5player movementcrossplatform
How to move the character correctly
Hi, i have the player that moves with cross platform input and it works perfectly, the problem is that i want the camera in diagonal position so now the player´s moves dosent look good.
In this image i have the player in the ideal position
And this is what i want, the camera looks the player in diagonal and now the character dosent move correctly
What shoud i change in my code so the player moves how i want?
float H = CrossPlatformInputManager.GetAxisRaw("Horizontal"); float V = CrossPlatformInputManager.GetAxisRaw("Vertical"); Vector3 direction = new Vector3(H, 0f, V).normalized;
Comment