box2d 2.2 b2Body GetGroundBody方法消失了

时间:2013-11-07 08:51:37

标签: box2d

我试着用旧的box2d< = 2.1 我有问题要了解如何替换b2Body的GetGroundBody方法 到box2d> = 2.2

var jointDef:b2MouseJointDef=new b2MouseJointDef();
jointDef.bodyA=world.GetGroundBody();   // what does it need to be now?
jointDef.bodyB=touchedBody;
jointDef.target=mouseToWorld();
jointDef.maxForce=1000*touchedBody.GetMass();
mouseJoint=world.CreateJoint(jointDef) as b2MouseJoint;

1 个答案:

答案 0 :(得分:1)

你可以让你自己的静体作为地面体。