Here is my code
using UnityEngine;
using System.Collections;
public class PlayerController : MonoBehaviour
{
public float speed;
public 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 * speed);
}
}
so this is not giving me any errors but i’m also not getting any control over my object it just sits there. also, is kenimatic and gravity are both unchecked.
any help would be great, this seems like it should work!