private bool isWithinRange(Vector3 origin, Vector3 destination) { float dist = Vector3.Distance(origin, destination); if (dist > extendable.getRange()) { return(false); } return(true); }