This method moved up, and is now private.  setLocalGravity() is public and is called when script sets MyAvatar.gravity.