Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

public RigidBody rb; not working

Hey, I'm following the Brackeys tutorial and when I type "public RigidBody rb;" like the tutorial says, I get an error


here's my code:


using UnityEngine;


public class PlayerMovement : MonoBehaviour

{

    public RigidBody rb;


    // Start is called before the first frame update

    void Start()

    {

       

    }


    // Update is called once per frame

    void Update()

    {

       

    }

}

Sign In or Register to comment.