434445464748495051525354
fd.shape = shape; fd.friction = 0.6f; fd.density = 2.0f; body.createFixture(fd); MotorJointDef mjd = new MotorJointDef(); mjd.initialize(getGroundBody(), body); mjd.maxForce = 1000.0f; mjd.maxTorque = 1000.0f; m_joint = (MotorJoint) m_world.createJoint(mjd); }