using UnityEngine;
using System.Collections;
public class playercontroller : MonoBehaviour
{
void FixedUpdate ()
{
float moveHorizontal = Input.GetAxis ("input.Horizontal");
float moveVertical = Input.GetAxis ("input.Vertical");
Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
GetComponent<Rigidbody>(Vector3);
}
}
on line 13, you’re passing a TYPE, the type is Vector3, it expected the type to be constructed and qualified.
GetComponent<Rigidbody>(Vector3);
should have a value of some sort.
GetComponent<Rigidbody>().AddForce(new Vector3(1.1f, 2.5f, 0));
Vector3 also supplies simple Vector3 objects(forward, back, etc.) which you can see as static variables that return Vector3 objects, this is described at the beginning of the Vector3 documentation.