Added snappingAngle variable