Creating skeletons and rigid bodies