|
|
@ -50,7 +50,7 @@ public class PlayerInputController : InputBehaviour |
|
|
|
private void OnMovement(InputAction.CallbackContext value) |
|
|
|
{ |
|
|
|
Vector2 m_recievedInput = value.ReadValue<Vector2>(); |
|
|
|
m_desiredDirection = new Vector3(m_recievedInput.x, 0.0f, m_recievedInput.y); |
|
|
|
m_desiredDirection = Quaternion.Euler(0.0f,Camera.main.transform.rotation.eulerAngles.y,0.0f) * new Vector3(m_recievedInput.x, 0.0f, m_recievedInput.y); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|