Changing Mass of a Rigidbody?

I’m trying to change the mass of an object in my scene, but I must be missing something simple, because it doesn’t work.

function Big () {

player.rigidbody.mass = 5.0;
player.rigidbody.drag = 2.0;

}

The drag updates correctly, so I don’t know what I’m doing wrong here.

Do you get an error or something? How do you know that the mass isn’t changing? Are you expecting it to fall faster? If so, higher mass doesn’t mean fall faster.

that code should update your mass as well…

remember that increasing the mass doesnt mean the objects falling faster.
what are you trying to achieve?

I’m also increasing the scale of the object. I want the rigidbody to be able to push objects only when its larger. I can see the Drag being changed in the Inspector, but the Mass doesn’t update so I can tell its not working.