Search Unity

Question bodyType not defined?

Discussion in 'Getting Started' started by unity_010736, Aug 27, 2023.

  1. unity_010736

    unity_010736

    Joined:
    Jul 27, 2023
    Posts:
    9
    upload_2023-8-27_21-56-20.png

    upload_2023-8-27_21-56-45.png

    If anyone can explain this it would be much appreciated I'm following a tutorial exactly but receiving issues left right and centre.
     

    Attached Files:

  2. AngryProgrammer

    AngryProgrammer

    Joined:
    Jun 4, 2019
    Posts:
    490
    Code (CSharp):
    1. // Change this
    2. private Rigidbody rb;
    3.  
    4. // Into this
    5. private Rigidbody2D rb;
     
    unity_010736 likes this.
  3. unity_010736

    unity_010736

    Joined:
    Jul 27, 2023
    Posts:
    9
    You have literally just saved my sleep deprived brain from failing an assessment so thank you eternally. :'D