unity rigidbody from script code example Example: unity rigid body variable public Rigidbody rigidbody;