hmm i can't seem to reproduce that behaviour... can you tell me more about the instance where this problem occured or maybe even send me a small demo project where the problem occurs ?
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AcknexWrapper;
namespace Test
{
class Program
{
//the main method, called by the scheduler
private static IEnumerable<ScheduleMethod> myMainMethod()
{
EngFun.level_load(null);
yield return 1;
ENTITY terrain =
ENTITY.ent_createterrain(null, new Vector(100, 0, -5), 10, 10, 5);
// wait a frame, before changing the terrain !
yield return 1;
CONTACT c =
terrain.ent_getvertex(null, 7);
c.z += 10; // increase the vertex height
c.v = null; // c.x,y,z was changed, instead of c.v
terrain.ent_setvertex(c, 7); // update the mesh
terrain.ent_fixnormals(0);
}
static void Main(string[] args)
{
//open the engine
EngFun.engine_open(null, null);
//start the scheduler
Scheduler.StartScheduler(myMainMethod);
}
}
}