added more functions to rigid body