modified constraint to have a default distance based on initial point position