added angular factor methods to rigid bodies, upgraded ray casting