[PD] outline detection and collision in Gem