A
A
AlexMark2015-10-06 16:36:05
Android
AlexMark, 2015-10-06 16:36:05

Doesn't skip AddForce in Unity?

45a5890be05a4a09bb5bd05692dbc9e3.png
why is this method not recognized?
it seems that all the guys in the guides have it in the library ... and you don’t need to create it yourself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DrSpritz, 2015-10-06
@AlexMark

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 question

Ask a Question

731 491 924 answers to any question