How do I persuade unity to recognise that a mesh has changed shape?
basically I'm trying to stick a box to the surface of a rippling plane
I've stolen the example code for deforming a mesh according to a sine wave but seem to be unable to get a raycast from the box to recognise the changing shape of the plane
I'm recalculating normals and bounds at the end of the mesh deformation script and couldn't see anything in the reference that said "recalculate where all the vertices and stuff are"
Am I missing something? I'm using free unity if that makes a difference
Thanks in advance