Project #00: Roll-a-Ball Tutorial Error

I am working through the tutorial Project #00: Roll-a-Ball in Learn/Tutorial/Projects.
In part two Moving the player I get an error at 09:38 of the video. Can anyone tell me what I am doing wrong here?

using UnityEngine;
using System.Collections;

public class PlayerController : MonoBehaviour 
{
	void FixedUpdate ()
	{
		float moveHorizontal = Input.GetAxis("Horizontal");
		float moveVertical = Input.GetAxis("Vertical");
		
		Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
		
		rigidbody.Addforce(movement);
	}
}

and the error message is

Assets/Scripts/PlayerController.cs(13,27): error CS1061: Type UnityEngine.Rigidbody' does not contain a definition for Addforce’ and no extension method Addforce' of type UnityEngine.Rigidbody’ could be found (are you missing a using directive or an assembly reference?)

The function is ‘AddForce()’ with an upper case ‘F’, not ‘Addforce()’. Both C# and Javascript are case sensitive.

this works

using UnityEngine;
using System.Collections;

public class PlayerController : MonoBehaviour
{
	public float speed;
	public Rigidbody rb;

	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);
	}
}

Property ‘UnityEngine.Component.rigidbody’ is obsolete:
The property has been deprecated. Use GetComponent&ltRigidbody&gt() instead.

So, what you do instead of what’s in the tutorial is something like this:

public class PlayerController : MonoBehaviour
{
     public Rigidbody rb;

     void Start()
     {
        rb = GetComponent<Rigidbody>();
     }

     void FixedUpdate()
     {
        rb.AddForce(movement * moveSpeed * Time.deltaTime);
     }
}

The gameobject that this script is attached to does not have a rigidbody, either add one or reference the gameobject that does have the rigidbody.

i think you need this part of the script

rigidbody.AddForce(movement * speed * Time.deltaTime);