Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

My world has a gravity of -9.8 and there are KDynamicBodyType bodies falling from the sky. At the bottom there is a PhysicsSprite with KinematicBodyType. I want the PhysicsSprite to be able to catch the bananas on its head and pile them on till they start falling.

So far I have:

  • Created a polygon for the PhysicsSprite
  • The falling bodies do fall on the polygon and get stuck but when I move the PhysicsSprite the bodies that fell on the polygon no longer stay with it. Meaning they don't stay on its head. When PhysicsSprite moves, the falling bodies just fall down and follow gravity.

What would be a best way to create a deep arc polygon on top of the PhysicsSprite such that the bodies falling from the sky would stay in the polygon and when the PhysicsSprite moves, the bodies that fell in the polygon move along with it as well. The bodies would keep piling on till balance can't be maintained and then they would start falling out of the polygon.

share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.