Unusual polygon collisions
Posted: Thu Oct 25, 2007 9:48 pm
I'm not sure if this is a bug or just stupidity on my part, but I can't get certain polygons to collide properly (with other polygons or segments). For example the marked edges of the following never collide:
The problem seems similar to what would happen if the polygon winding was incorrect, but as far as I can tell it's fine.
Any ideas?
Code: Select all
cpVect verts[] = {
cpv(-15,-15),
cpv(-15, 15),
cpv( 15, 15),
cpv( 15,-15),
// from here
cpv( 9,-15),
cpv( 5,-25),
cpv( -5,-25),
cpv( -9,-15),
// to here
};
Any ideas?