info.cartBlock = member.getBlock();
BlockFace[] possible = RailType.getType(info.cartBlock).getPossibleDirections(info.cartBlock);
TrackIterator iter = new TrackIterator(null, null, (int) member.getGroup().length(), true);
info.distance = Integer.MAX_VALUE;
for (BlockFace dir : possible) {
iter.reset(info.cartBlock, dir);
if (iter.tryFind(this.info.getRails()) && iter.getCartDistance() < info.distance) {
info.distance = iter.getCartDistance();
info.cartDir = dir;
info.centerDir = iter.currentDirection();
}