Hey im getting the cs1955 error but i cant figure out how to change my code (line 17/18 "Vector3) to make it work.
public class PlayerController : MonoBehaviour
{
[SerializeField] private Rigidbody _rb;
[SerializeField] private float _speed = 5;
private Vector3 _input;
// Update is called once per frame
void Update()
{
GatherInput();
}
void FixedUpdate() {
Move();
}
void GatherInput() {
_input = Vector3(Input.GetAxisRaw("Horizontal"),0,Input.GetAxisRaw("Vertical"));
}
void Move() {
_rb.MovePosition(transform.position + transform.forward * _speed * Time.deltaTime);
}
}
8157842–1060358–PlayerController.cs (666 Bytes)