- Home /
Change size and mass on collision
Hi. I'm new to Unity and game programming. I've almost finished my first Unity game but I still need to add one more feature to finilize it. I need your help for that feature. I have a rigidbody player and objects. I want increase player's size and mass everytime it collides with these objects. How do I handle this on the script side? I've been using Unityscript so far.
Answer by Piflik · Jul 17, 2012 at 06:53 PM
rigidBody.mass for changing mass, transform.scale for changing scale.
You have almost finished a game and have problems reading the script reference?
Thanks for the quick answer. I'm still learning. $$anonymous$$ost of my scripts are based on different tutorials but I'll be checking the scripting reference more often from now on.
I am a beginer too and I think the answer is realy good!