Added support for custom physics shapes.