var wallSd2l:b2PolygonDef = new b2PolygonDef();
var wallBd2l:b2BodyDef = new b2BodyDef();
var boxDef11:b2PolygonDef = new b2PolygonDef()
var wallB2l:b2Body;
wallBd2l.position.Set(12,5);//8.8
//wallSd2k.restitution=1
wallSd2l.SetAsBox(.1, 2);
//wallBd2l.angle=-.45
wallB2l = m_world.CreateBody(wallBd2l);
wallB2l.CreateShape(wallSd2l);
wallB2l.SetMassFromShapes();
////////
boxDef11.SetAsOrientedBox(2, 0.1, new b2Vec2(0, 0), 0);//w h x y angle
wallB2l.CreateShape(boxDef11);
No comments:
Post a Comment