GitHub PushEvent at 2014-04-12 15:53:46
Repository: hxcollision
Actor: Dvergar
Payload: {"shas":[["e50e3c4a59cc1ac874aede448d3857de21ab15fc","d3a9d60f25548a443a48e03420721a03fc1cc65e@gmail.com","unitVector / separation fixed !?\n\nYour sample was showing the unitVector pointing\nto the collided shape with Circles collisions and\nat the opposite with other types of collisions.\n\nPolygon to Circle wouldn't return a correct\nUnitVector (sample again).\n\nBy moving the distance piece of code from\ncheckPolygons to checkCircleVsPolygon\nit ended up working.\n\nThere's only one unitVector while several\nshapes are colliding and since there's no notion\nof order it's a bit confusing to use.\n\nI created two methods in CollisionData.hx\ngetUnitVectorOf & getSeparationOf so that one can\nget a unit/separation vector for a specific\nshape.\n\nThere were some weird behaviors with separation\nin Circle to Circle collisions.\n\nI updated the sample so that it shows vector\ndirections as well. I also displayed the\nseparation vector.\n\nI think i remember you were using it for luxe,\nso i might be misunderstanding its use or you're\nusing an updated version of it. In any case it\nworks for me now so i thought i would at least\nlet you review it.","Dvergar",true]],"size":1,"ref":"refs/heads/master","head":"e50e3c4a59cc1ac874aede448d3857de21ab15fc"}