try wrap=1 in heightfield