Added r opt so that collision radiuses can be altered.