Jump to content

Setting gravity per object - box2d


popey
 Share

Recommended Posts

Hullo!

Newbie to phaser - please be gentle :)

I've been play with the body-debug-draw ( http://phaser.io/examples/v2/box2d/body-debug-draw ) example. The goal is to make a block which is controlled by the user and as such has zero gravity, with other blocks falling on it. I can't figure out how to set gravity for the one item to zero. If I make the object no longer static, it drops off the screen. If I keep it static, I can't move it with the mouse or keys.

Suggestions welcome!

Edit: Never mind. Silly error on my part. Sorry for the noise :)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...