NewtonUserJointGetRowForce
NewtonUserJointGetRowForce
dFloat NewtonUserJointGetRowForce( const NewtonJoint* joint, int row)
Usage
Return the magnitude previews force or torque value calculated by the solver for this contraint row.
Parameters
- const NewtonJoint *joint - pointer to the joint.
- int row - index to the constraint row.
- Remark
- This function can be call for any of the previews row for this particular joint, The application must keep track of the meaning of the row.
- Remark
- This function can be used to produce special effects like breakable or malleable joints, fro example a hinge can turn into ball and sockect after the force in some of the row excide certain high value.