NewtonUserJointSetRowStiffness

From Newton Wiki
Jump to: navigation, search

NewtonUserJointSetRowStiffness

void NewtonUserJointSetRowStiffness( const NewtonJoint* joint, dFloat stiffness)

Usage

Set the maximum percentage of the constraint force that will be applied to the constraint row.

Parameters

  • const NewtonJoint *joint - pointer to the joint.
  • dFloat stiffness - row stiffness, it must be a values between 0.0 and 1.0, the default is 0.9.
  • Remark
  • This function will override the default stiffness value set after a call to NewtonUserJointAddLinearRow or NewtonUserJointAddAngularRow. the row stiffness is the percentage of the constraint force that will be applied to the rigid bodies. Ideally the value should be 1.0 (100% stiff) but dues to numerical integration error this could be the joint a little unstable, and lower values are preferred.

See also

NewtonUserJointAddLinearRow NewtonUserJointAddAngularRow NewtonUserJointSetRowSpringDamperAcceleration