MissingComponentException: There is no 'Rigidbody' attatched to the "Player" game object...
I was trying to complete the Survival Shooter tutorial but I keep getting this error when after trying to test out my character:
MissingComponentException: There is no 'Rigidbody' attached to the "Player" game object, but a script is trying to access it. You probably need to add a Rigidbody to the game object "Player". Or your script needs to check if the component is attached before using it. UnityEngine.Rigidbody.MovePosition (Vector3 position) (at C:/buildslave/unity/build/artifacts/generated/common/modules/NewDynamics.gen.cs:946) PlayerMovement.Move (Single h, Single v) (at Assets/Scripts/Player/PlayerMovement.cs:49) PlayerMovement.FixedUpdate () (at Assets/Scripts/Player/PlayerMovement.cs:31)
I followed the instructions in this video completely and I have restarted the project twice. Does anyone know how to solve this?
You might want to include a screenshot of the player object's Inspector showing the Rigidbody component. You also should reformat your stack trace as a block quote for readability (the `` icon above the edit area can help). You might also want to include the code snippet around where the exception was triggered.