Difference between revisions of "SetRigidBodyMass"
Jump to navigation
Jump to search
imported>Deathbane27 |
imported>JOG (moved discussion to talk page) |
||
Line 15: | Line 15: | ||
*Values larger than 100 can actually cause the object to gain momentum when it bounces. | *Values larger than 100 can actually cause the object to gain momentum when it bounces. | ||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Object Functions]] | [[Category: Object Functions]] |
Revision as of 10:14, 26 August 2006
Syntax:
SetRigidBodyMass fMass
Example:
SetRigidBodyMass 80
This command will set the mass of an object, which determines how much it moves when the player bumps it or hits it with a weapon. Valid values are 0-100, 100 being no movement.
Note: The above is incorrect in my observations. Based on my experience, the higher the value, the more it bounces.
- 0 = no movement
- 100 = normal
- Values larger than 100 can actually cause the object to gain momentum when it bounces.