Initial bare structure for using direct compute for simulateDynamics. More rework on the way.