i have a 2d project and its completely blank except for a single triangle. i want it to move but i cant make it move. i added a movement script and i tried to use wasd and the arrow keys and nothing worked. i adjusted the speed and whatnot and made sure my rigidbody2d was set up correctly. i literally just can't figure it out. i've also tried rigidbody2d.addforce but i probably wasn't using it right.
here is my PlayerController.cs: ```csharp
using UnityEngine;
public class PlayerController : MonoBehaviour
{
public float speed = 5;
Rigidbody2D rb;
void Start()
{
rb = GetComponent<Rigidbody2D>();
}
void FixedUpdate()
{
float horizontalInput = Input.GetAxis("Horizontal");
float verticalInput = Input.GetAxis("Vertical");
Vector2 movement = new(horizontalInput, verticalInput);
rb.linearVelocity = movement * speed;
}
}
btw there aren't any errors.