added functionality to RigidBody