Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Most likely you are working in Unity 5.x, and the guides you have looked at are focused on Unity 4.x.
The fact is that earlier in Unity 4.x rigidbody / rigidbody2d were presented as a property described in MonoBehaviour, containing a ready-made reference to the Rigidbody component (if, of course, there was such a current GameObject). In Unity 5.x this property has been removed from MonoBehaviour and now you will need to access the Rigidbody2d component yourself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question