added linear factor function to rigid bodies