Question by 
               Alex120313 · Dec 12, 2015 at 11:06 PM · 
                error message  
              
 
              i've got an error with the roll a ball tutorial
the error is: NullReferenceException: Object reference not set to an instance of an object PlayerController.FixedUpdate () (at Assets/scripts/PlayerController.cs:20)
and this is my script: 
 
                 
                error.png 
                (16.6 kB) 
               
 
              
               Comment
              
 
               
              Answer by dhore · Dec 13, 2015 at 02:11 AM
The gameobject that this script is attached to needs to have a rigidbody component attached as well. It looks like you may have forgotten to add a rigidbody to the object?
Your answer
 
             Follow this Question
Related Questions
Position is infinite 0 Answers
Unity Package Manager Error 4 Answers