Whats wrong with my RaycastHit?

The exception says “use of unassigned variable: GroundPoint”

		Ray GroundRay = new Ray (transform.position, Vector3.down);
		RaycastHit GroundPoint;
		if (Physics.Raycast (GroundRay, GroundPoint, 0.1f))
		{
			IsJumping = true;
			rigidbody.velocity = new Vector3 (0, 0, 0);
		}

Hi awplays49,

You need to put out in front of GroundPoint in your if statement.

Like this:

if (Physics.Raycast (GroundRay, out GroundPoint, 0.1f))

Hope it helps!

HN