i dont know what to do… with this code the sphere wont moive on my plane. I added the rigidbody component but if I press an Arrow key the sphere doesent move.
public class moveplayer : MonoBehaviour
{
void fixedupdate()
{
float moveHorizontal = Input.GetAxis("horizontal");
float moveVertical = Input.GetAxis("vertical");
Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
rigidbody.AddForce (movement);
}
}