0
我一直試圖實施Ghetto Birds彈弓系統,啓動並運行到拉動反饋點(顯示點的路徑力量/方向)在接觸位置後更新,但遺憾的是當我釋放時球不會飛。這是當我鬆開拉發生的事情(說代碼):Cocos2d:Box2d身體不會對部隊作出反應(貧民窟鳥系統)
1.applyForce-method gets called, this contains these operations:
-> Calls a method that creates a box2d body of the ball sprite.
-> Calculates the force to be applied on the ball.
-> Applies the force on the ball.
從來就檢查了所有這些方法實際上被運行時調用。
因此,身體被創造出來,這個力量被應用到那個身體上,但它不會移動。我在這裏錯過了一個必要的步驟嗎?
任何意見將不勝感激!
編輯:我使用cocos2d 2.0它是什麼值得!