使用AndEngine動,我想等我創建一個雪碧移動對象:物理對象不會與精靈
tower1 = new Sprite(50, 150, this.tower1TextureRegion,
this.getVertexBufferObjectManager());
tower1Body = PhysicsFactory.createBoxBody(physicsWorld, tower1,
BodyType.KinematicBody, towerFixtureDef);
this.physicsWorld.registerPhysicsConnector(new PhysicsConnector(tower1,
tower1Body, true, true));
,然後定義移動:
moveTower1 = new MoveXModifier(actualDuration, tower1.getX(), -150f)
{
@Override protected void onModifierFinished(IEntity
removeTower(tower1); }
};
tower1.registerEntityModifier(moveTower1);
當我運行這個應用程序,精靈正在移動,但物理對象不是。我做錯了什麼?
非常感謝!有用 ! :) 謝謝! – mullen18 2013-02-23 18:45:24
歡迎您! – Steven 2013-02-23 18:48:15