Hello. I have a hmp and I need to edit each vertex to snap it to certain z values, like f.i. 1, 1.5, 2, 2.5 so on, instead of current 1.243 or anything. The idea is to have slopes of one of 6 possible angles.
ERROR in communism.cpp, line 0: #include<god.h> was fatally missed.
Use ent_status and ent_get/setvertex to manipulate terrain vertices. Snapping can be done as follows (c is a CONTACT* pointer) (if I'm not mistaken): c.z = integer(c.z*2)/2; // or simply cast as (int)
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual
Thank you both. LE: Sorry to bother you further but I've read the manual section 10 times and I can't grasp something: - c.v is a pointer to a D3DVERTEX struct, corresponding to that specific CONTACT*; - it means that I could also use c.v.y and get the same result as if using c.z (IIRC in Dx coords y is upwards) Am I right?
Last edited by mireazma; 06/29/1112:38.
ERROR in communism.cpp, line 0: #include<god.h> was fatally missed.