Talk:SetRigidBodyMass

Revision as of 17:41, 16 November 2006 by imported>Wz

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.

Using this function on objects with skeletons (NPCs, creatures, etc.) causes the "bones" to stretch or contract. --Deathbane27 06:31, 14 August 2006 (EDT)

In my experience it's exactly like stated in the article, an object with a rigid body mass of 50+ is very hard to move at all, and one with 100 won't even move when you run into it.--JOG 11:32, 26 August 2006 (EDT)
The various observations are due to the fact that the mass of a bhkRigidBody alone controls nothing about the movement, only the combination with other properties like friction does. Also, there is no such thing as a "maximum force" the player can exert onto bodies, so if it is movable (mass < 95), it can be moved at 80 mass as much as at 50 mass, though the movement will be much smoother at 80: If the player moves the mouse half of the screen while grabbing the object, the force is greater than it would be for a mass of 50, moved half the screen, and thus the movement overcomes friction more easy.

If you want a really smoothly moving object, go for high mass and low friction. --wz

Return to "SetRigidBodyMass" page.