added the possibility to optimize ConvexHullShape for better performance