loop_simbody change to use simbodystruct as argument