3、llision.Shapes.*import Box2D.Dynamics.Joints.*import Box2D.Dynamics.Contacts.*import Box2D.mon.Math.*import Box2D.mon.*import flash.events.Event;import flash.display.*;import flash.text.*;import General.*import flash.display.MovieClip; public class splitter extends MovieClip{ //Public
4、 Class public function splitter(){ //Main function var m_sprite:Sprite = ne_sprite); addEventListener(Event.ENTER_FRAME, update, false, 0, true); var __sprite = m_sprite; dbgDra_dra_fillAlpha = 0.3; dbgDra_lineThickness = 1.0; dbgDra_dra_____world.Creat1234567下一页[感谢阅读这篇
7、blic function CheckPolyShape(poly) { if (!(3 <= poly.vertexCount poly.vertexCount <= b2_maxPolygonVertices)){ return -1; } var m_normals:b2Vec2 = neals. Ensure the edges have non-zero length. for (var i=0; i < poly.vertexCount; i++) { var i1 = i; v