Adding torque in Snowboarder game course

so I have a problem. I am doing everything as does Mr. Rick and this is the error I get when trying to get to play mode and testing if it works.

Assets\Scripts\PlayerController.cs(8,5): error CS0246: The type or namespace name ‘RigidBody2D’ could not be found (are you missing a using directive or an assembly reference?)

the image shows my code which is exactly the same as shown on the course.

what is it I am doing wrong?

Hi,

There is a typo in your script. The error message mentions the word you need to check. If in doubt how to write the word, you could look the correct class up in the Unity API or in Rick’s code. :slight_smile:

Did this help you fix the issue?


See also:

1 Like

Founr it thank you very much I wouldn’t have seen it for hours for sure

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms