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.velocity= movement;
}
}
Unity refuses to recognize the code “rigidbody.velocity”… I have followed every single step that the tutorials do and my code still won’t work! Please help!!! I have had friends, and my teachers look over my project and no one understands what is going on.
I keep getting the error;
Assets/Scripts/PlayerController.cs(14,25): error CS1525: Unexpected symbol `rigidbody’
:(:(:(:(
What have i done wrong???