Functionality for multiple rigidbodies