rigidbody.AddForce

I watched this video Learn game development w/ Unity | Courses & tutorials in game design, VR, AR, & Real-time 3D | Unity Learn and start to write a code in visual studio but rigidbody.AddForce dosen’t work.Maybe it dosen’t work because video checked with version 4.0 and in unity 5 occurrred some changes? Please, help me.

A piece of your code might help.

Wrong forum.

You can’t use rigidbody.Something() anymore.

Gotta use GetComponant().Something() now.

Or you can call that once and store it in a member.