Made 'simulateRigids' static.
Changed indexing to static functions.