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