2012-09-22 66 views
1

我角色的身體一直在彈跳。我如何去除身體彈性? (andengine)

body = PhysicsFactory.createCircleBody(mPhysicsWorld, this, BodyType.DynamicBody, PhysicsFactory.createFixtureDef(1, 1, 1)); 
mPhysicsWorld.registerPhysicsConnector(new PhysicsConnector(this, body, true, true)); 

我該如何預防?

回答

1

替換爲:PhysicsFactory.createFixtureDef(1, 0, 0),使彈性爲0.