Dynamic generation of CollisionClasses.