Hi there, I am totally new to unity, and I don’t know what on earth am I doing. So, I was following the Roll-a-Ball tutorial game when I came up with a problem (1. Environment and Player - Moving the Player). The ball was not moving! I have this script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour {
private Rigidbody rb;
void Start ()
{
rb = GetComponent<Rigidbody>();
}
void FixedUpdate ()
{
float moveHorizontal = Input.GetAxis("Horizontal");
float moveVertical = Input.GetAxis("Vertical");
Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
rb.AddForce(movement);
}
}
and my settings:
I don’t see anything to do with “Player Controller” on here
Also, I see this when I press the file in the bottom left corner of the image above:
Can anybody tell me what is wrong?