addcutplane and collision working function