Added support for setting the origin of animations.