prepare towards CPU version of rigid body pipeline