void FixedUpdate(){
GetComponent<Rigidbody>().MovePosition(GetComponent<Rigidbody>().position + (direcao * velocidade * Time.deltaTime));
Ray raio = Camera.main.ScreenPointToRay(Input.mousePosition);
Debug.DrawRay(raio.origin, raio.direction * 100, Color.red);
RaycastHit impacto;
if(Physics.Raycast(raio,out impacto, 100, mascaraChao))
{
Vector3 posicaoMiraJogador = impacto.point - transform.position;
posicaoMiraJogador.y = transform.position.y;
Quaternion novaRotacao = Quaternion.LookRotation(posicaoMiraJogador);
GetComponent<Rigidbody>().MoveRotation(novaRotacao);
}
}