function invert_all_normals (ENTITY* ent) { CONTACT* c; VECTOR inv; int i; i = ent_status (ent,1); for (;i>0;i--) { c = ent_getvertex (ent,NULL,i); vec_set(inv,vector(c.nx,c.ny,c.nz));vec_inverse(inv); c.nx = inv.x;c.ny = inv.y;c.nz = inv.z; //c.v.nx = inv.x;c.v.ny = inv.y;c.v.nz = inv.z; ent_setvertex(ent,c,i); } }
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de