This code that rebuilt attachment models/meshes and collision shapes used to be in simulate() but was moved to updateGeometry().