Assets\Scripts\ControlaJogador.cs(43,34): error CS0029: Cannot implicitly convert type 'float' to 'UnityEngine.Vector3'
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))
{
Vector3 posicaoMiraJogador = posicaoMiraJogador = impacto.point - transform.position;
posicaoMiraJogador = transform.position.y;
Quaternion novaRotacao = Quaternion.LookRotation(posicaoMiraJogador);
GetComponent<Rigidbody>().MoveRotation(novaRotacao);
}
}