Add support for animated collision shapes (Fixes #1549)