Hi,
I learn the tutorial about Roll-a-Ball for beginner.
I run the project on Unity 5.0.1f1
I press on the button play and play with the arrows keys
To create motion but the ball not move.
What I miss here?
My script for move the ball on the plane:
`using UnityEngine;
using System.Collections;
public class PlayerController : MonoBehaviour {
public float speed;
void FixedUpdate()
{
float moveHorizontal = Input.GetAxis ("Horizontal");
float moveVertical = Input.GetAxis ("Vertical");
Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
if( movement != Vector3.zero) {
GetComponent<Rigidbody>().AddForce(movement * speed * Time.deltaTime);
}
}
}`