whoops, forgot to increment the iterator
set dirty bit when script changes simulation stuff

also fixes for linear and angular damping