I trying to displace terrain by using ent_setvertex....
using the simple example from the manual:

int i = ent_status(terrain_ent,0);
for (; i>0; i--)
{ CONTACT* c = ent_getvertex(terrain_ent,NULL,i);
c.v.y += 100.0;
ent_setvertex(terrain_ent,c,i);
}

mostly works but always the edges of each chunk are not changed properly. I have set up terrain like this:

terrain_chunk=32;
ent_createterrain(NULL, vector(0,0,0),64,64,2048);

everything looks right to me... so why is this happening?

Last edited by Matt_Aufderheide; 01/06/17 18:39.