slinga
Established Member
Hey all,
I had some free time and I was fooling around with polygons on the Saturn. I'm using the standard slPutPolygon API and it seems to work so far. I hate the syntax for defining the polygons, is there a cleaner way to do it? For example, if I declare PDATA polygon1 how do I change's color later on during runtime? I can't find any place where the PDATA struct is actually defined.
I also could use some advice on doing collision detection between polygons. For example, if I have two triangles and I know there pos[x], pos[y], pos[z], and ang[z] (I rotate the polygons) how do I know if two triangles are colliding?
Thanks in advance.
I had some free time and I was fooling around with polygons on the Saturn. I'm using the standard slPutPolygon API and it seems to work so far. I hate the syntax for defining the polygons, is there a cleaner way to do it? For example, if I declare PDATA polygon1 how do I change's color later on during runtime? I can't find any place where the PDATA struct is actually defined.
I also could use some advice on doing collision detection between polygons. For example, if I have two triangles and I know there pos[x], pos[y], pos[z], and ang[z] (I rotate the polygons) how do I know if two triangles are colliding?
Thanks in advance.