Posted By: gri
raise vertices of terrain - 02/13/14 12:36
hi,
c_trace and ent_setvertex() works nice on a single terrain, created at nullvector position.
But as I ent_create() a terrain 100 quants ahead in y direction, only the very first vertex got raised correctly and after that between the traced vertices and the raised ones exists an offset in y direction.
So I convertet the world/entity coords with vec_for_ent(hit.x,you); and have now the effect that the very first hidden vertex is wrong, but all the following are correct now
complete opposite then before.
Without big code - does someone know this behaivior ?
c_trace and ent_setvertex() works nice on a single terrain, created at nullvector position.
But as I ent_create() a terrain 100 quants ahead in y direction, only the very first vertex got raised correctly and after that between the traced vertices and the raised ones exists an offset in y direction.
So I convertet the world/entity coords with vec_for_ent(hit.x,you); and have now the effect that the very first hidden vertex is wrong, but all the following are correct now
complete opposite then before.
Without big code - does someone know this behaivior ?