After taking a decade or so off from programming I am trying to restart using Unity… new to it and C# (used C a lot). When I hit play the ball does not move at all. I think I followed everything in the tutorial exactly, and have read all the questions like mine where the answer ends up being a typo. I am not seeing my mistake, here is the code:
using UnityEngine;
using System.Collections;
public class PlayerController : MonoBehaviour
{
public float speed;
void FixedUdate()
{
float moveHorizontal = Input.GetAxis ("Horizontal");
float moveVeritcal = Input.GetAxis ("Vertical");
Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVeritcal);
Debug.Log ("moved " + moveHorizontal + " " + moveVeritcal);
rigidbody.AddForce(movement * speed * Time.deltaTime);
}
}
FWIW I am REALLY impressed something like this is available for free!!!