Here is the script (i don’t know how to take a picture soo i just copy it).
Also tell me what i did wrong!
using UnityEngine;
using System.Collections;
public class PlayerContoller : MonoBehaviour {
public float speed;
private Rigidbody rb;
void Start ()
{
rb = GetComponent<Rigidbody>();
}
void fixedupdate ()
{
float moveHorizontal = Input.GetAxis ("Horizontal");
float moveVertical = Input.GetAxis ("Vertical");
Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
rb.AddForce (movement * speed * Time.deltaTime);
}
}